vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Notepad++ Syntax Highlighter for vBulletin? (https://vborg.vbsupport.ru/showthread.php?t=305922)

Digital Jedi 12-16-2013 04:40 AM

Notepad++ Syntax Highlighter for vBulletin?
 
Does anyone know of a Notepad++ syntax highlighter that would work for vBulletin templates? I normally just use HTML, sometimes even PHP highlighting, but it would nice if there was something that played nice with <if> conditionals and variables.

DivisionByZero 12-16-2013 07:33 AM

a long, LONG time ago I was contemplating on ripping out that Plain Jane text editor in the admincp and replace it with TinyMCE or something cool like that. Then I merged that into my custom admincp idea.

But if you want an external solution, EditPlus is easy enough to write a language reference script for.

Simon Lloyd 12-16-2013 07:37 AM

Take a look at the GeShi project :)

Digital Jedi 12-16-2013 08:29 AM

Quote:

Originally Posted by DivisionByZero (Post 2468590)
a long, LONG time ago I was contemplating on ripping out that Plain Jane text editor in the admincp and replace it with TinyMCE or something cool like that. Then I merged that into my custom admincp idea.

But if you want an external solution, EditPlus is easy enough to write a language reference script for.

I started experimenting with Notepad++'s language styler when I first got it, and then realized it was probably going to be more trouble than it's worth. I guess no one delves into large template files enough to have already written one by now. What does EditPlus have along those lines? Like a built in styler?

Quote:

Originally Posted by Simon Lloyd (Post 2468593)
Take a look at the GeShi project :)

I'll check it out, too. Seems familiar somehow...

final kaoss 12-16-2013 12:19 PM

I haven't really tried to write one out but they have a very large selection of user submitted STX files.

I do remember that you can make & name small filters if you will that act like editor buttons.... like adding a line of code to it and then double click to insert it wherever.

Although I agree I've always used editplus over any editor since about 2005.

This will help you get started.
http://www.editplus.com/files.html

Quote:

Features
Syntax highlighting

EditPlus supports powerful and customizable syntax highlighting for HTML, CSS, PHP, ASP, Perl, C/C++, Java, JavaScript and VBScript by default. Also, you can create your own syntax file to support other programming languages.

Internet features
Seamless web browser for previewing the content of your HTML document or Java applet without leaving the editor. Browser window also has common browser commands so you can browse Internet web sites as well as local HTML files.
FTP (also sftp and FTPS) feature for uploading your local files to FTP server or for editing remote files directly.
Highlights URL and e-mail addresses in normal text files and lets you activate them with a single keystroke (F8) or 'Ctrl + double-click'.
Hex Viewer

The Hex Viewer allows you to display current file in Hex mode. You can switch back and forth between normal editing window and the Hex Viewer with one command.

Code Folding

EditPlus supports fast and convenient code folding feature based on line indentation. You can hide or disply lines of code with its indent levels.

HTML toolbar

The HTML Toolbar allows you to insert common HTML tags quickly and easily. It also supports useful tools such as HTML Color Picker, Character Picker, Table Generator and Object Picker.

Document selector

The Document Selector offers quick mouse access to all document windows currently loaded. Much faster than selecting on Window menu or pressing Ctrl+Tab key multiple times.

User tools

EditPlus supports user-defined tools, help files and keystroke recording files. The output of tool execution can be captured in the Output Window, so that you can double-click the error line to automatically load the file and locate the cursor to that line.

Auto completion

Auto completion is a time-saving feature which changes a short abbreviation into a complete string. It supports Perl and C/C++ by default. Also, you can create your own auto completion file to support other programming languages.

Cliptext window

The cliptext window is collection of text clips for quick and easy access. You can easily customize them, and you can also create your own cliptext file.

Document template

Document template offers a quick start when you create a new document.

Other features

Line number, ruler, column selection, powerful search and replace, multiple undo/redo, spell checker, customizable keyboard shortcuts, and more.
Quote:

Originally Posted by Digital Jedi (Post 2468606)
I started experimenting with Notepad++'s language styler when I first got it, and then realized it was probably going to be more trouble than it's worth. I guess no one delves into large template files enough to have already written one by now. What does EditPlus have along those lines? Like a built in styler?


I'll check it out, too. Seems familiar somehow...


tbworld 12-16-2013 04:44 PM

Quote:

I'll check it out, too. Seems familiar somehow...
It has been around a long time. I am sure you have.

Somewhere, I wrote a quick pre-processor for newly created templates. It allowed us to use our own syntax for vBulletin nested elements, especially the more difficult "in-line" type. Unfortunately, we only wrote it to be a one way process.

A simple thing to implement if your writing a ton of templates.

DivisionByZero 12-16-2013 05:08 PM

geshi is not an editor... its simply a pretty-print formatter.

EditPlus is a free download if you want to try it. YOu create language styles in a simple text file.


All times are GMT. The time now is 10:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01160 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete