Resaltado de sintaxis de Scala en Eclipse

I'm using Eclipse & the Scala plugin to write scala code. The editor seems to have limited syntax highlighting options - for example I would like to change the formatting of variables (I like them blue) and method defs.

I know there are a few other highlighter plugins out there like EclipsesColorer, but they all seem to lose features of the Scala (or other langauges) Editor like auto complete and suggestions.

Is there any plugin or way I can modify the scala plugin to get finer control over Scala syntax coloring/formatting options?

preguntado el 10 de marzo de 12 a las 12:03

3 Respuestas

Some of this is being worked on. The nightly build page has 'Semantic Highlighting' (making variables blue etc) marked as 'coming soon.

También el hoja de ruta actual may help with when a released version on the eclipse-scala ide.

(As 'coming soon' is very date dependent then 'today' is 10/March/12 )

respondido 10 mar '12, 13:03

Good to know, cant wait for this change, have been doing a lot less typing and a lot more reading of Scala code over the past few days, cant wait for these enhancements, will make life so much easier to follow... Thanks for the links! - Lobo de noche

You might want to update your answer, since this functionality has been added to the stable versions long ago (as @schimmy writes in his answer) - Eyal

The editor that comes with the Play Framework Eclipse plugin has syntax highlighting customizability: http://scala-ide.org/download/current.html

You can go to Preferences -> Scala -> Syntax Coloring to set the different colors.

Respondido 22 Oct 13, 21:10

¿Has probado Tema de color Eclipse?

Scala auto complete, etc. unaffected ;-)

A slightly tweaked Wombat theme in Scala works well for me (also: Aptana Eclipse plugin helps immensely with html/css/erb, etc.)

respondido 10 mar '12, 14:03

Thanks for the link - looks like a very neat plugin but doesnt really give me what I want... When you say "slightly tweaked Wombat theme" what are the tweaks used to get it working with scala? - Lobo de noche

Any idea where these scala themes are now? the site seems to be done for the whole week :( - kisna

@kisna not sure, I've long since moved on from color themes as I find them largely useless on Linux (just install the < 100KB xcalib package and hot key invert entire screen from white to black, voila, a "color theme" ;-)) - virtuosos

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.