X

Geertjan's Blog

  • November 20, 2014

Ceylon for NetBeans IDE 8.0.1

Geertjan Wielenga
Product Manager

The history of Ceylon support in NetBeans can be divided into three stages. In 2012, syntax coloring was created; in 2013, code completion was added; and yesterday, during Java2Days in Sofia in Bulgaria, where I ran into Ceylon lead Stephane Epardaud (@UnFroMage), i.e., in 2014, and under his guidance the Ceylon libraries in the NetBeans plugin were upgraded to the latest versions, syntax coloring was updated, the start of code folding has been implemented, and the Ceylon parser is partly integrated to check for syntax errors.

Above you see one of the Ceylon sample projects expanded to show one file, with syntax coloring, and the initial comment within a code fold.

And here you see the parser in action because a semi-colon has been omitted:

The message displayed when you hover over the red error icon or the red error mark is as follows, which comes from the Ceylon parser:

Here's the repo:

https://java.net/projects/nb-api-samples/sources/api-samples/show/versions/8.1/misc/Ceylon

Join the discussion

Comments ( 5 )
  • guest Thursday, November 20, 2014

    Sounds great. Although i could not found a simple gui sample made in ceylon. thanks.


  • Fernando Cassia Wednesday, November 26, 2014

    Is there a SIMPLE tutorial, for a total Netbeans newbie, detailing the steps required to add a new language support to Netbeans?. I remember on the wiki there were some docs, but they were for some outdated version, with a big warning at the top saying "these do not apply to v7.0 or above" or something to that effect.

    I have in mind Netrexx. I guess that for syntax highlighting to work I first need to obtain a list of commands and keywords used by the language. Then I add it to... WHERE in Netbeans? That kind of stuff. :)

    Thanks in advance.

    FC


  • Geertjan Wednesday, November 26, 2014

    Hmmm. You've not found the NetBeans Platform Learning Trail or not looked at it at all: https://netbeans.org/kb/trails/platform.html


  • Fernando Cassia Wednesday, November 26, 2014

    Thanks Geertjan. This is the obsolete document I remember reading.

    http://wiki.netbeans.org/How_to_create_support_for_a_new_language

    which has been replaced with this

    https://platform.netbeans.org/tutorials/nbm-javacc-lexer.html

    which scared me away because it begins describing the parser.

    IMHO, the first document above was much more clearer for a newbie.

    The first looks like a tutorial, the second like written by a developer, for experienced developers.

    In short: I think it's time to update document #2 above to resemble #1

    (or #1 updated to include the updated info from #2). ;)

    If you get what I mean...

    Just my $0.02

    Best!

    FC


  • guest Friday, April 17, 2015

    This is great. I sure hope the plug-in is maintained and improved over time. I get the feeling that it is not feature complete since some functionality are not described in your post (code completion, etc...). Is there any plan to make it feature complete ?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.