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

Scan selected code only? Or scan inside <script> tags only? #17

Open
AaronV opened this issue Sep 25, 2012 · 1 comment
Open

Scan selected code only? Or scan inside <script> tags only? #17

AaronV opened this issue Sep 25, 2012 · 1 comment

Comments

@AaronV
Copy link

AaronV commented Sep 25, 2012

I'm writing in a rails environment and have some inline JavaScript. I can't use sublime-jslint here because my erb partials often don't start with or contain non-html entities like <%= ... %>.

I would like control-J to be smart enough to detect if code was selected, and only scan that.

Alternatively, if nothing is selected and the file starts with a tag, skip everything until it finds a <script></script> block. Then only evaluate the code inside the <script> tags.

@ghost
Copy link

ghost commented Mar 22, 2015

JSLint has not supported scanning in HTML since version 2013-05-01. This is because it is Crockford recommends all JS to be included from external files. I can look into this, but it will require a bit of re-writing.

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

1 participant