3 Replies - 4652 Views - Last Post: 12 March 2011 - 07:49 AM

#1 [RTS]BN+VS*   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 175
  • Joined: 23-March 09

jQuery support in Eclipse

Posted 11 March 2011 - 05:25 AM

I'm creating several jQuery plugins in Eclipse with PDT (PHP dev tools), which has Javascript support. The issue is that the outline won't show stuff inside of my closure that holds the jQuery plugin (where all my code is). This is rather annoying when such a plugin gets big and has dozens of functions, since I can't navigate via the outline window, as I'm used to.

I've done some searching for better jQuery support, but haven't found anything concrete. So I'm looking for something to make this work decently in my Elcipse, or alternatively, some tool optimized for JS/jQuery dev, that I can then use in conjunction with Eclipse.

To clarify to the people that don't know what a jQuery plugin looks like:

(function( $ ){ $.fn.jquerypluginname = function( foo, bar, baz ) {
    // statements
    // and functions
}; })( jQuery );


Is This A Good Question/Topic? 0
  • +

Replies To: jQuery support in Eclipse

#2 Jstall   User is offline

  • Lurker
  • member icon

Reputation: 434
  • View blog
  • Posts: 1,042
  • Joined: 08-March 09

Re: jQuery support in Eclipse

Posted 11 March 2011 - 06:38 AM

Hello,

If by the outline you mean that it will not give you syntax hightlighting and such you can get that for your JS files by using a more simple solution like Notepad++ on Windows or Gedit(with JS file type selected) on Linux. You could just do your plug-ins in those and plop them into your Eclipse project.
Was This Post Helpful? 0
  • +
  • -

#3 [RTS]BN+VS*   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 175
  • Joined: 23-March 09

Re: jQuery support in Eclipse

Posted 12 March 2011 - 03:38 AM

View PostJstall, on 11 March 2011 - 01:38 PM, said:

If by the outline you mean that it will not give you syntax hightlighting and such


No, it has nothing to do with syntax highlighting, which works perfectly fine in Elcipse (it be really sad if it didn't). The outline window allows you to easily navigate through the data structures you defined. Google Images to the rescue: http://images.google...eclipse+outline
Was This Post Helpful? 0
  • +
  • -

#4 Jstall   User is offline

  • Lurker
  • member icon

Reputation: 434
  • View blog
  • Posts: 1,042
  • Joined: 08-March 09

Re: jQuery support in Eclipse

Posted 12 March 2011 - 07:49 AM

Ohh, my mistake, thought you meant something else. I guess reason being is that I had problems with Eclipse PDT recognizing Smarty syntax(and sometimes putting up error flags when there was none) and thought this was a similar situation. And yes, it would have been sad if Eclipse chocked on JS closures . I'm afraid I know of no alternative that could do what you need but would be interested to hear if anyone else has any suggestions. Sorry I couldn't be more help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1