Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

April/2024
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
212223 24252627
282930    

[ Archives News
for 'Developers' ]

home > news > developers > ruby screenshot of the week #5

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


Date: February, 27 2007
Url: http://blogs.sun.com/tor/entry/ruby_screenshot_of_the_week4


Others News

©2002-2019Java-Virtual-Machine.net best web design software | web editor | easy website builder | bootstrap popup | css slider