"Creator" on this page refers to Sun Java Studio Creator.
Tuesday February 27, 2007
Ruby Screenshot of the Week #5
Tim Bray just posted an entry on his first experiments with the Ruby and NetBeans support and in particular, talks about the syntax highlighting. I was already planning on spending this week's screenshot on the highlighting features, so I'll use Tim's ape.rb source code and show you a few more details:
Notice the following:
- Notice how unused local variables are highlighted (see
dummy which I inserted to make a point - that's not Tim's fault!).
- Notice how the symbol under the caret gets highlighted along with all other uses of the same symbol! This is pretty useful when you're dealing with
blocks for example - it will show you that a local variable may be used unintentionally as a block variable and will get modified as a side effect.
- Notice how methods calls are highlighted in bold. This is handy when you have a typo, and what you thought was a local variable read is actually a call
to an unbound method.
- Notice how strings are lexed too. Here you can see that it's telling you (in red italics)
"\n" is not expected as an escape code - this is a single quoted String after all.
- Embedded Ruby code within Strings -
#{ } - is properly shown as Ruby code. Occurrences highlighting and code completion works in these sections too.
Regarding the color choices, I should point out that these colors are consistent with the new colors in the Java support in NetBeans 6 - parameters are orange, fields green, unused items gray, and so on.
In doing this screenshot I noticed a couple of bugs I'm off to fix now!
(2007-02-27 14:02:59.0)
Permalink
Posted by Juan Pablo Tarquino on February 27, 2007 at 02:53 PM PST #
Posted by Sauvray on February 28, 2007 at 05:17 AM PST #
Posted by None on February 28, 2007 at 05:48 AM PST #
Posted by Tor Norbye on February 28, 2007 at 09:23 AM PST #
So in short I would like to commit/stabilize in 2-4 weeks. It depends :) Then I would like to concentrate on more features in both frontend and backends.
Posted by Martin Krauskopf on February 28, 2007 at 12:16 PM PST #
Posted by stinkyminky on February 28, 2007 at 12:58 PM PST #
Posted by Tor Norbye on February 28, 2007 at 03:06 PM PST #
Posted by Juan on March 02, 2007 at 08:47 AM PST #
Posted by stinkyminky on March 05, 2007 at 07:46 AM PST #