Scala Syntax Highlighting in Eclipse
Asked Answered
I

3

5

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?

Indict answered 10/3, 2012 at 12:43 Comment(0)
M
9

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

Also the current roadmap 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 )

Montez answered 10/3, 2012 at 13:15 Comment(2)
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!Indict
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)Formula
M
2

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.

Margotmargrave answered 22/10, 2013 at 20:17 Comment(0)
T
1

Have you tried Eclipse Color Theme?

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.)

Tangerine answered 10/3, 2012 at 14:5 Comment(3)
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?Indict
Any idea where these scala themes are now? the site seems to be done for the whole week :(Myrnamyrobalan
@Myrnamyrobalan 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" ;-))Tangerine

© 2022 - 2024 — McMap. All rights reserved.