Page 1 of 1

GeSHi - Generic Syntax Highlighter for NeoBook

PostPosted: Mon Oct 17, 2011 5:54 am
by dec
Hi to all!

I you are a PHP developer (not only NeoBook out there at all! Do you?) maybe you ear about the GeSHi - Generic Syntax Highlighter. This software can help you when need to highlig source code in order to show onto a web page, for example, a forum board.

Well, Geshi have support for dozens of languages, and now can deal with NeoBook source code too! I prepare a "neobook.php" file in order to copy onto the geshi languages, so, you can use the new "neobook" language when publish source code on the web.

For example, you can view how I use it on the NeoPlugins Support Forum, just :arrow: click here and take a look. Great uh? The neobook language recognize almost all NeoBook native actions, the NeoSoftware plugins actions, the Hans Peter plugins actions (yes Hans, all the 502 actions are recognized!) and of course the NeoPlugins actions, just 521 actions more!

In order to get the plugins actions I use the NBP List program, you know, so, if you want to add more actions to the Geshi NeoBook language, just reply to this thread with the action list and I update the file acordingly. File... what file?

:arrow: Of course, you can download the Geshi NeoBook language file here!.

Hope this might be of your interest. And feel free to use on your projects!

Any comment is appreciated.

Thanks for your attention!

PostPosted: Tue Oct 18, 2011 11:29 am
by dec
Hi,

So, not to much PHP developers here, I think. :(

PostPosted: Tue Oct 18, 2011 11:45 am
by eddy current
Yes, GeSHi is nice and thanks for adding the neobook.php language file. What would be really nice is a source code library app that used this syntax highlighter in a Web object, and allowed saving/retrieving to a database. <grin> -- Glen

PostPosted: Tue Oct 18, 2011 12:20 pm
by dec
Hi!

gcoulthard wrote:Yes, GeSHi is nice and thanks for adding the neobook.php language file. What would be really nice is a source code library app that used this syntax highlighter in a Web object, and allowed saving/retrieving to a database. <grin> -- Glen


Thanks for your answer! You are talking about to make something like a code editor that support the NeoBook language and allow to save portions of code, like a code database program specie for NeoBook code?

PostPosted: Tue Oct 18, 2011 1:58 pm
by eddy current
Yes, just wishful thinking though <grin>. Two reasons:
1. Archive code from current Neobook projects for re-use.
2. Capture code that is provided publicly on the forums

For the second purpose, you would need some citation-like meta data fields for URL (of forum posting), author, date added, plugin info (if any), etc.

Just a thought.
Glen

PostPosted: Wed Oct 19, 2011 1:37 am
by dec
Hi,

Appear to be a good project for NeoBookers. However, I thinking if something like this yet exists. For example, any of the moderns code editor have the facility to add new languages in order to be recognized and highlighted. So, maybe is a better idea to improve some of the existing editors instead of develop a new one. I dont know...

PostPosted: Thu Oct 20, 2011 11:25 pm
by dec
Hi,

For an example, take a look at this post from Hans Peter at 2005: Ultraedit syntax highlighting for neobook-source. This is I want to say in my last message. Using some of this "super" editors, and with a bit of "project" support (allowing you to manage the files on a specific folder, for example) I think your suggested program exists. Well, more or less. ;)

PostPosted: Fri Oct 21, 2011 7:01 am
by HPW
The old and discontinued plugin hpwColorMemo also supports sysntax highlighting.
It was used with the newlisp-based pubviewer sample.

UltraEdit is still my all-day workhorse for all programming languages.

PostPosted: Fri Oct 21, 2011 8:49 am
by dec
HPW wrote:The old and discontinued plugin hpwColorMemo also supports sysntax highlighting.
It was used with the newlisp-based pubviewer sample.

UltraEdit is still my all-day workhorse for all programming languages.


I use Notepad++ with good results too. ;)

PostPosted: Mon Jan 09, 2012 8:13 pm
by Harakiri
dec wrote:
HPW wrote:The old and discontinued plugin hpwColorMemo also supports sysntax highlighting.
It was used with the newlisp-based pubviewer sample.

UltraEdit is still my all-day workhorse for all programming languages.


I use Notepad++ with good results too. ;)


Could you explain the process to add a new language to n++?

I try but I couldt add Neobook scripting. :oops:

PostPosted: Tue Jan 10, 2012 2:36 am
by dec
Hi there,

Harakiri wrote:Could you explain the process to add a new language to n++?

I try but I couldt add Neobook scripting. :oops:


I never add a new language to Notepad++, so, can't explain how to do. However, take a look at the "langs.model.xml" file, under the directory you install Notepad++. I think this file can be edited in order to add new languages. Take a look specially at the final of the file: you can found "commented" the template wich you can use in order to achieve this.

Good luck!

PostPosted: Tue Jan 10, 2012 7:33 am
by Harakiri
dec wrote:Hi there,

Harakiri wrote:Could you explain the process to add a new language to n++?

I try but I couldt add Neobook scripting. :oops:


I never add a new language to Notepad++, so, can't explain how to do. However, take a look at the "langs.model.xml" file, under the directory you install Notepad++. I think this file can be edited in order to add new languages. Take a look specially at the final of the file: you can found "commented" the template wich you can use in order to achieve this.

Good luck!


Excelente!

Re: GeSHi - Generic Syntax Highlighter for NeoBook

PostPosted: Sat Jun 01, 2013 12:01 pm
by Harakiri
Link is dead... :(

Re: GeSHi - Generic Syntax Highlighter for NeoBook

PostPosted: Sat Jun 01, 2013 12:23 pm
by dec

Re: GeSHi - Generic Syntax Highlighter for NeoBook

PostPosted: Sat Jun 01, 2013 12:58 pm
by Harakiri
that was fast! =D

thanks