An Oracle blog about NetBeans for PHP

  • News
    August 16, 2012

New JavaScript Editor in the Development Build

As I wrote in my last few posts, we are working on the new JavaScript editor. A few days ago we have merged the editor from a branch to the trunk, so now the editor is a part of daily builds that can be downloaded here and it should be much easier to play with it.

We are working hard on it and probably not everything is working as you want or as you expected. I would like to ask you to help us to make the JavaScript editor better and better. Just play with it or try to write real code and if you have any problem or doubts, speak up, create new issue / enhancement. Thank you.

Join the discussion

Comments ( 6 )
  • guest Thursday, August 16, 2012

    What's new in this editor?

  • guest Thursday, August 16, 2012

    Below is a minimal, jslint-clean script. (But MyClass is Read-Only). Douglas Crockford likes a space between "function" & "()", which is not the default setting, but easy to fix.

    Note that 'getsUsed' is marked as Unused, but it is not.

    Apparently, there is no way to preserve indenting :(

    /*global console, MyClass, MyFunc,*/

    MyClass = {

    foo: null,

    init: function () {

    'use strict';

    var getsUsed = 'fubar';

    this.foo = new MyFunc({

    'useful': getsUsed




  • Petr Pisl Friday, August 17, 2012

    > What's new in this editor?

    The editor is complete rewrite. It's not easy to answer your question. The feature is bigger, but it is not tested well for now.

    > Note that 'getsUsed' is marked as Unused, but it is not.

    I have created new issue for it. http://netbeans.org/bugzilla/show_bug.cgi?id=217007

    Thanks, this is exactly what helps me a lot to make the editor better.

  • bruce Friday, August 17, 2012

    > What's new in this editor?

    For starters, you can now control Javascript formatting separately from other languages. For example, CodeSniffer PEAR standard wants PHP indented with 4 spaces, while jslint/jshint/jsbeautifier/closure-linter want 2 space indentation. It is now easier in Netbeans to maintain both styles.

  • RSWRC Friday, August 17, 2012

    Is it a complete rewrite compared to the editor we find in 7.2? If yes - when will it be released - 7.3? Is there a bug for this new editor in bugzilla?

  • Petr Pisl Friday, August 17, 2012

    @RSWRC: Yes it's complete rewrite. According this http://wiki.netbeans.org/NetBeans_73 the FCS date is still unknown but the feature freeze is at the end of this month and the code freeze is in the beginning of December this year.

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