brackets-jshint icon indicating copy to clipboard operation
brackets-jshint copied to clipboard

JSP support

Open antonio-petricca opened this issue 10 years ago • 5 comments
trafficstars

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

Thank you!!!

antonio-petricca avatar Dec 10 '14 13:12 antonio-petricca

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.

cfjedimaster avatar Dec 11 '14 19:12 cfjedimaster

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!

antonio-petricca avatar Dec 12 '14 06:12 antonio-petricca

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?

cfjedimaster avatar Dec 12 '14 19:12 cfjedimaster

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

antonio-petricca avatar Dec 14 '14 14:12 antonio-petricca

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

cfjedimaster avatar Dec 14 '14 20:12 cfjedimaster