JavaDiscussion
Syntax Highlighting

FastAsUcanAug 7, 2007 12:38pm
Any ideas how to go about implementing syntax highlighting? i want to build a simple text editor for a script language, and add syntax highlighting to the features.


Sponsor
induscryptAug 7, 2007 1:13pm
You can build one out of the Netbeans Platform itself. Not a plugin, but a full featured Stand-alone editor, that is.
It sounds like a big deal, but is quite simple to do (intermediate level expertise, maybe) , and the end result is a very compact editor with under 2-3 mb, if I remember correctly .
Here is an excellent tutorial on how to make a custom syntax highlighter from Netbeans (Especially, refer tot the link at the bottom of that page)
antonioshome.net/attic/nbeditor/ [antonioshome.net/attic/nbeditor/]

antonioshome.net/kitchen/netbeans/nbms-standalone.php [antonioshome.net/kitchen/netbeans/nbms-standalone.php]
platform.netbeans.org/tutorials/nbm-mfsyntax.html [platform.netbeans.org/tutorials/nbm-mfsyntax.html]

(Beware though, it'll probably not work as an applet)

FastAsUcanAug 8, 2007 11:07am
Thanks! i'll check it out.


Sponsor
induscryptAug 15, 2007 8:34am
How did it go?

FastAsUcanAug 15, 2007 9:05am
well since i'm doing this as a covert operation at work, i haven't got to it yet, still working on a compiler for the script language, before building the editor...
I promise i'll let you know! thanks again


greenIridiumMay 13, 2:48pm
Hello. This is my tutorial on how to make modules to support a language in Netbeans IDE:

news.hiperia3d.com/2008/04/netbeans-tutorial.html [news.hiperia3d.com/2008/04/netbeans-tutorial.html]

I hope you liked. It did not won the Netbeans blogging contest but many people liked it.


Sponsor
induscryptMay 13, 5:08pm
Oh yes. I lost track of that competition. How did it go? Did they focus only on the new features in the Beta?

I'll check your post tonight. Looks pretty good. And the name in the top comment is interesting :-)


Syntax Highlighting

You need to Sign-up for StumbleUpon to post to this forum