开发者

Eclipse outline of Prototype javascript classes

Is there a way to show the structure of a javascript class declared using Prototype's Class.create function in the Eclipse outline view?

开发者_运维问答

The declarations look like:

var Foo = Class.create({
  bar: function() {
    ...
  },

  baz: function() {
    ...
  },
});

At the moment all I get is "Foo:".

(A google search turned up http://marketplace.eclipse.org/content/prototypewtp, but the link to the plugin homepage is dead)


There is the SPket plugin for eclipse wich support various js libraries. Its only free only for personal use though.

http://spket.com/prototypejs.html


There is no plug-in that I know of that does this.

The convention is that javascript outlines show properties by name. Foo is the variable name.


You may want to check out Netbeans. Netbeans recognizes 'Class.create', see http://netbeans.org/bugzilla/show_bug.cgi?id=149001

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜