Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSP support #64

Open
antonio-petricca opened this issue Dec 10, 2014 · 5 comments
Open

JSP support #64

antonio-petricca opened this issue Dec 10, 2014 · 5 comments

Comments

@antonio-petricca
Copy link

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

Thank you!!!

@cfjedimaster
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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 <script> blocks. I just don't think that is a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants