New Colors in NetBeans 6 Editor

Guest Author

Syntax coloring has changed significantly in NetBeans 6. What do you think about the changes - are they good or bad?

Java syntax coloring in latest daily build (new scheme):


Java syntax coloring in M9 (old scheme):

Join the discussion

Comments ( 38 )
  • Daniel Thursday, June 21, 2007
    Less italics and less bold formatting is good, but the new string colour isn't that good. I thought the purple colour was a kind of "convention" throughout every language's syntax highlighing.
  • Funkyidol Thursday, June 21, 2007
    Less Italics are good but less bold decreases the readability to a certain extent. its good that keywords like public, import , class are 'not' bold but the fuction calls are better of bold.
    Light green colour for braces is better.
    Also the greyed out unused text was more visually appealing then a squeeky line underneath it.
  • slim ouertani Thursday, June 21, 2007
    I am not agree with this modification : as java dev I need to more high lignt function names.
  • Mikael Thursday, June 21, 2007
    I like it - it's light and easy on the eyes. Kind of inconsistent though that PlayerAction (which is a class) is bold and AbstractAction, NbBundle, ActionEvent, TopComponent, PlayerTopComponent et al. (who also are classes) are not.
    On the other hand, it would be a lot of black & bold text if all class occurrences were bold, and PlayerAction is the "main subject" in this file so I guess that's why...right?
  • Cicero Zandoná Thursday, June 21, 2007
    +1. I miss the bold on the keywords
  • Vladimir Sizikov Thursday, June 21, 2007
    Much better! Bolds are painful to my eyes and add to the general impression that the old theme is not good. The new one is much more modern. Finally, no need to fight the settings to remove the bold fonts!
  • rittmey Thursday, June 21, 2007
    Would be nice to see screenshots of other operating systems - text rendering is quite different in Windows compared to Mac OS X, Linux and most probably Solaris. Also interesting would be to see both versions with antialiasing and without. I do not use AA, but others do - and it must look acceptable for all.

    The light green is too obtrusive IMHO. Though pink is not the best colour either ;-) Maybe a less brighter green would be nice.

    With regards to italics and bold I agree with the previous posts. Italics suck, but the current usage of bold is pretty good.
  • Tetsuo Thursday, June 21, 2007
    much better!
  • tborak Thursday, June 21, 2007
    Likes: I definitely prefer the green matching braces over the pinkish-purple. I agree with rittmey that darkening the green a bit would make it a bit less obtrusive, but still much better than pink.

    Bolding of only the class and class methods is also an improvement that makes navigating the source much easier.

    Dislikes: Don't like the string color - agree that purple was a better choice. The new "mustard" is too close to the unused imports markers. Again, maybe if it was darkened a bit more.

    Squiggly line under unused variables (not sure why it appears under win TopComponent) is not as appearent as the grayed-out version, but it is more in line with the style for errors/warnings (underlines with color signifying type). I think I just talked myself into liking this one.

    Overall - very nice!

  • pprun Thursday, June 21, 2007
    I miss the grey unused content and the differences for method calls: abstract/instance/static method
  • Crístian Deives Thursday, June 21, 2007
    I liked when the method calls were in bold. This way, the lines get too plain, it's not very nice. And I didn't like the new String color either. I think it reminds of Visual Studio's color scheme (thankfully you didn't put the comments in green!!!) In overall, I think this new scheme is better.
  • stenlee Thursday, June 21, 2007
    much better now .. i like it
  • Ramon Thursday, June 21, 2007
    I do agree with Vladimir comments, also the icons on the left are looking good to me
  • Johannes Thursday, June 21, 2007
    Looks alright although I prefer the grayed out vars as compared to the jagged line.
  • Claudiu Thursday, June 21, 2007
    getMessage and findInstance are both static methods. Then why is findInstance not rendered in italics in the new scheme, but getMessage is?
  • diego Thursday, June 21, 2007
    I'm like the current usage of bold too.
  • mutchd Thursday, June 21, 2007

    Do people forget that they can set all of these things themselves and have any colours they like?

    Personally I like the old scheme. How about keeping it as a theme? That way people can have the one they prefer. On the scheme front why not create one for each of the other major editors? Similar to the keyboard shortcuts idea. Make life more comforting for the enlightened.

    If we're debating whether the brace highlight should be pink or green have we run out of real issues?

  • James Selvakumar Thursday, June 21, 2007

    Things i like:

    1. bluish background for the current line. (very good)

    2. icons on the left.

    Things i don't like:

    Pretty much everything else.

    I'm happy with the current usage of bold.

    (The current scheme otherwise reminds me of notepad!!)

    Things i would like to see:

    1. different colour for static variables and methods to identify them quickly.

    2. A marker on the left to identify the beginning and end of blocks.(not just the braces)

    (this is available in both eclipse and idea).


    I like the colours used by intellij idea and even jedit.
    They pretty much differentiate everything.

    But i'm happy to see the NB team putting the effort to improve the colour scheme. Congrats.

  • Rohan Ranade Thursday, June 21, 2007
    I miss the gray color for unused variables. I found them more appealing and easy to find out than a gray underline that the new scheme has.

    One thing I would like to know is, why do we have so many changes so many times? First with the icons, then with the Module manager, and now this. I just gave a presentation to a group of university lecturers on Netbeans 6 features. Most of them will download NB6 milestone M10 (supposed to be out on 25th) and will be surprised to see the syntax coloring changed completely from the one in the demo that I gave.
  • williamchen Thursday, June 21, 2007
    I think people's favor about color schema varies very much from one to another. I would suggest adding more profile options in the "Fonts and Editors" and let people choose what they like.
  • Rya de Laplante Thursday, June 21, 2007
    My preferences: green comments, purple strings, grey for unused variables, bolded methods. It seems that there is less information now that fewer things are bolded or colored.
  • Mck Thursday, June 21, 2007
    I like it a lot. Except for the squiggly line for unused variables!
    The squiggly lines are used for errors and warnings, which unused variables are neither. A method may be an implementation to an interface or superclass and it may just be that the implementation does not require that argument. I don't like looking at code, when there's nothing wrong with, with squiggly lines all over it.
  • gwimag Thursday, June 21, 2007
    Old (M9) is better (much better).
  • williamchen Friday, June 22, 2007
    BTW, I am experiencing long time freezing in the latest daily builds. I don't know whether netbeans team has noticed this. Please make sure it won't freeze when m10 is released.
  • Adrian M Friday, June 22, 2007
    Colours are OK, but the font is still ugly and pixelated.
  • Funkyidol Friday, June 22, 2007
    Adrian M has a point...
    font in Netbeans is still not that easy on eyes as that in visual studio or other IDE's are.
  • Tomáš Procházka Friday, June 22, 2007
    I also think that better woudl be different colour for static and non static variables. Also local varibles, Classes and the method name has the same color. It's too simple for me.
  • Patrick Kimber Friday, June 22, 2007
    I think it looks great. Much better.
  • Earl Friday, June 22, 2007
    I think them new colors is real perty.
  • Michael Saturday, June 23, 2007
    To be honest, I don't like it. I think that many Java developers feel quite familiar with the current colors and changes aren't needed.
  • Michael Nischt Saturday, June 23, 2007
    really a great improvement and colors are overall well chosen. the new editor is really the killer feature of nb6!
  • pedalshoe Saturday, June 23, 2007
    It isn't consistent. The old scheme is better, and more standardized.
  • Dinonysus Monday, June 25, 2007
    it's definitely better.
  • Jeff Campbell Monday, June 25, 2007
    - Function calls NOT being bold
    - reserved words NOT being bold
    - I LOVE the old style of have greyed out unused imports and variables.... It was REALLY easy to spot unused items! (Please don't take that one out :(...)
    - Is "win" variable supposed to have a gray underline?
  • Ben Loud Monday, June 25, 2007
    I like the changes. But maybe its because I got my start with Visual Studio before switching to Java, but I've always prefferred their colors. I have a minimalist taste: keywords and literals only. The first thing I do after installing the IDE is set keywords to non-bold bright blue as they are in the new build (yay!), turn off any bold and italics, set green comments, and turn off highlighting the current line. (everyone seems to like it but me, I find it distracting). When I first tried a build of NetBeans 6, my main compaint was that the editor had bright colors EVERYWHERE! I found it very difficult to read, and a pain to turn it all off. Also I couldnt seem to turn off current line highlighting (there was no "none" choice for the background color). It would be nice if NetBeans included several sensible profiles to choose from.
  • Roman Strobl Wednesday, June 27, 2007
    Thanks to everyone for your comments. Our UI engineers are discussing your comments and we will try to take into account the most common types of feedback. It is hard because some of the comments contradict but we'll try to do our best. Thanks again for your input.
  • Ryan de Laplante Wednesday, June 27, 2007
    I like Ben's idea of providing multiple color schemes to choose from. I think you should have one scheme for developers coming from Visual Studio that has green comments and other things a certain way. An other scheme that makes it very much like Eclipse, and a default scheme that uses "NetBeans colors" (however that turns out).
    Make sure that unused variables and imports are colored in some way (I liked the grey) -- that's a killer feature.
  • Siddharth Wednesday, July 4, 2007
    bold for methods was a little better
    greying out of unused variables/imports was more intuitive than looking at the line underneath, somehow it gives the impression that its an error
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.