Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Syntax Highlighting - Where to Start
Syntax Highlighting - Where to Start [message #147295] Tue, 21 October 2003 15:10 Go to next message
Eclipse UserFriend
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 #147360 is a reply to message #147295] Tue, 21 October 2003 17:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.guide.removeMe.andMeToo.earthlink.net

Phil,

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.

-- Dan

---------------------------------------------
co-author "The Java Developer's Guide to Eclipse"
http://www.amazon.com/exec/obidos/ASIN/0321159640

"Phil Spencer" <phil.spencer@credit-suisse.com> wrote in message
news:bn3i94$rhl$1@eclipse.org...
> 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 #149965 is a reply to message #147295] Mon, 27 October 2003 22:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

You can start with the sample xml editor provided by PDE. It implements
basic syntax highlighting. See File > New > Project > Plugin project >
.... > plugin with an editor.
--

Phil Spencer wrote:
> 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 22:36 Go to previous message
Eclipse UserFriend
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.
Previous Topic:multiple instances of a view
Next Topic:Class Definition not found
Goto Forum:
  


Current Time: Wed Jul 17 18:27:26 GMT 2024

Powered by FUDForum. Page generated in 0.03411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top