views:

181

answers:

2

I am looking for a way to define some syntax coloring for a language in Eclipse. I only need to highlight certain sets of keywords, so the logic is trivial. So I would like to be able to define these in a plain definition file. Is there perhaps some Eclipse plugin which allows this, or is it possible out of the box?

+1  A: 

The EclipseColorer plugin may fit the bill!

Ola Eldøy
+4  A: 

XText is a more generic and complex solution, which will generate for you the code for a custom Editor able to offer the usual IDE features, that are derived from a grammar (your "plain definition file"), including.

  • syntax coloring, but also
  • model navigation (F3, etc.),
  • code completion,
  • outline view, and
  • code templates.
VonC