Source language: Translate to:

GeSHi - Generic Syntax Highlighter for NeoBook

Questions and information about creating Internet aware NeoBook applications. Including PHP, HTML, FTP, HTTP, Email, etc.

Moderator: Neosoft Support

GeSHi - Generic Syntax Highlighter for NeoBook

Postby dec » Mon Oct 17, 2011 5:54 am

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!
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby dec » Tue Oct 18, 2011 11:29 am

Hi,

So, not to much PHP developers here, I think. :(
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby eddy current » Tue Oct 18, 2011 11:45 am

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
eddy current
 
Posts: 48
Joined: Mon May 23, 2005 7:24 pm

Postby dec » Tue Oct 18, 2011 12:20 pm

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?
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby eddy current » Tue Oct 18, 2011 1:58 pm

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
eddy current
 
Posts: 48
Joined: Mon May 23, 2005 7:24 pm

Postby dec » Wed Oct 19, 2011 1:37 am

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...
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby dec » Thu Oct 20, 2011 11:25 pm

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. ;)
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby HPW » Fri Oct 21, 2011 7:01 am

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.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby dec » Fri Oct 21, 2011 8:49 am

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. ;)
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby Harakiri » Mon Jan 09, 2012 8:13 pm

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:
User avatar
Harakiri
 
Posts: 75
Joined: Fri Aug 13, 2010 2:07 pm
Location: Mars

Postby dec » Tue Jan 10, 2012 2:36 am

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!
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby Harakiri » Tue Jan 10, 2012 7:33 am

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!
User avatar
Harakiri
 
Posts: 75
Joined: Fri Aug 13, 2010 2:07 pm
Location: Mars

Re: GeSHi - Generic Syntax Highlighter for NeoBook

Postby Harakiri » Sat Jun 01, 2013 12:01 pm

Link is dead... :(
User avatar
Harakiri
 
Posts: 75
Joined: Fri Aug 13, 2010 2:07 pm
Location: Mars

Re: GeSHi - Generic Syntax Highlighter for NeoBook

Postby dec » Sat Jun 01, 2013 12:23 pm

.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Re: GeSHi - Generic Syntax Highlighter for NeoBook

Postby Harakiri » Sat Jun 01, 2013 12:58 pm

that was fast! =D

thanks
User avatar
Harakiri
 
Posts: 75
Joined: Fri Aug 13, 2010 2:07 pm
Location: Mars


Return to NeoBook and the Internet

Who is online

Users browsing this forum: No registered users and 1 guest