Syntax Highlighting - Where to Start [message #147295] |
Tue, 21 October 2003 11:10  |
Eclipse User |
|
|
|
Originally posted by: phil.spencer.credit-suisse.com
I would like to write syntax highlighters for some custom file types. I'm
new to eclipse plugin development and don't know where to start. I took
brief look at the editor examples but didn't find it very informative
about the syntax highlighting part of the task.
Is there an introduction to the principles of adding
syntax-highlighting/live-parsing to the editor somewhere.
Phil
|
|
|
|
|
Re: Syntax Highlighting - Where to Start [message #149986 is a reply to message #147360] |
Mon, 27 October 2003 17:36  |
Eclipse User |
|
|
|
Originally posted by: ed.burnette.REMOVE.THIS.sas.com
This is also covered for Eclipse 2.1 in chapter 9 of Eclipse in Action. Free
sample code, including an example editor can be downloaded from the web
site.
When I was learning it I started with the sample Java editor that comes with
the Example Plug-ins package (a separate download from the eclipse.org
download page). For syntax coloring, take a close look at how the samples
extend the RuleBasedPartionScanner, RuleBasedScanner, FileDocumentProvider,
and SourceViewerConfiguration classes.
--
Ed Burnette, co-author Eclipse in Action (www.manning.com/gallardo)
"Dan Kehn" <eclipse.guide@removeMe.andMeToo.earthlink.net> wrote in message
news:bn3ouk$3b5$1@eclipse.org...
> I'm clearly biased, but I find that Chapter 27, "Building a Custom Text
> Editor with JFace Text", is a good start (written by Scott Fairbrother).
It
> includes an example editor that adds content assist, syntax highlighting,
> and content formatting for SQL statements.
>
> "Phil Spencer" <phil.spencer@credit-suisse.com> wrote in message
> news:bn3i94$rhl$1@eclipse.org...
> >
> > Is there an introduction to the principles of adding
> > syntax-highlighting/live-parsing to the editor somewhere.
|
|
|
Powered by
FUDForum. Page generated in 0.07700 seconds