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?

Matthew Farwell
  • 60,889
  • 18
  • 128
  • 171
NightWolf
  • 7,694
  • 9
  • 74
  • 121

3 Answers3

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 )

andy
  • 1,695
  • 1
  • 9
  • 7
  • 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! – NightWolf Mar 10 '12 at 13:42
  • 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 Apr 13 '15 at 12:18
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.

schimmy
  • 393
  • 2
  • 11
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.)

virtualeyes
  • 11,147
  • 6
  • 56
  • 91
  • 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? – NightWolf Mar 11 '12 at 00:32
  • Any idea where these scala themes are now? the site seems to be done for the whole week :( – kisna May 11 '16 at 04:01
  • @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" ;-)) – virtualeyes May 11 '16 at 07:03