Go Back   vb.org Archive > Community Central > Community Lounge
  #1  
Old 12-16-2013, 04:40 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 12-16-2013, 07:33 AM
DivisionByZero's Avatar
DivisionByZero DivisionByZero is offline
 
Join Date: Dec 2002
Location: South Bend, Indiana
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-16-2013, 07:37 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look at the GeShi project
Reply With Quote
  #4  
Old 12-16-2013, 08:29 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DivisionByZero View Post
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 View Post
Take a look at the GeShi project
I'll check it out, too. Seems familiar somehow...
Reply With Quote
  #5  
Old 12-16-2013, 12:19 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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...
Reply With Quote
  #6  
Old 12-16-2013, 04:44 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 12-16-2013, 05:08 PM
DivisionByZero's Avatar
DivisionByZero DivisionByZero is offline
 
Join Date: Dec 2002
Location: South Bend, Indiana
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04555 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete