cfjedimaster / brackets-jshint

Adds JSHint support to Brackets
MIT License
130 stars 41 forks source link

JSP support #64

Open antonio-petricca opened 9 years ago

antonio-petricca commented 9 years ago

Is it possibile to hint JS code inside a JSP file?

Thank you!!!

cfjedimaster commented 9 years ago

You can try switching the file type in Brackets (lower right corner), but I'm assuming it won't parse right - or will get 'confused' by the JSP.

antonio-petricca commented 9 years ago

I've already tried to switch the file type, but it doesn't recognize the JSP token in order to extract the JS code to hint.

Is it possibile to extend the plugin to accomplish that?

Thak you very much!

cfjedimaster commented 9 years ago

Possible, but it doesn't feel like a good to me. I'd suggest simply moving the JS into its own file, which is recommended anyway, right?

antonio-petricca commented 9 years ago

You are right, but I have some parte of my code which have to be built starting from some STRUTS2 instructions.

Is it a way to accoplish that, or I have to rewrite my code as suggested from you?

Thank you, Antonio

cfjedimaster commented 9 years ago

Right now code linters in Brackets register to a particular file type. You could modify it to check all file types and modify the extension to look for Githubissues.

  • Githubissues is a development platform for aggregating issues.