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

Allow linting from HTML #773

Open
rdiez opened this issue May 6, 2021 · 0 comments
Open

Allow linting from HTML #773

rdiez opened this issue May 6, 2021 · 0 comments

Comments

@rdiez
Copy link

rdiez commented May 6, 2021

I have a small device with a simple built-in web server, so no Linux + Apache etc. The device generates single-file web pages with status information and configuration settings.

I have automated HTML linting inside Emacs: the web page is downloaded first with 'curl', then linted with 'tidy'. The results are displayed in the compilation window, as if they were C++ compilation warnings.

Those web pages have CSS inside several <style> tags, and I would like to lint the generated CSS too.

Unfortunately, csslint cannot lint inside HTML.

I could try to write some script to extract the contents of the <style> tags, but then the position of the warnings (the line numbers) would not match the original HTML file.

It would be nice if csslint could lint the contents of the HTML <style> tags directly.

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