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.

Comments:

What's new in this editor?

Posted by guest on August 16, 2012 at 05:31 PM CEST #

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
});
}
};

Posted by guest on August 16, 2012 at 10:18 PM CEST #

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

Posted by Petr Pisl on August 17, 2012 at 10:45 AM CEST #

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

Posted by bruce on August 17, 2012 at 03:03 PM CEST #

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?

Posted by RSWRC on August 17, 2012 at 03:15 PM CEST #

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

Posted by Petr Pisl on August 17, 2012 at 04:46 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today