Can Sublime check my HTML and CSS code (without having to install linters)?
Can Sublime check my HTML and CSS code?
The closest thing to that would be syntax highlighting and it’s ability to tell you when you might have a tag that’s malformed in some cases or you’re using a CSS property that doesn’t exist.
However that’s nothing to rely on (and depending on various factors might not even be accurate), so if you want to be sure everything is correct, a tool dedicated to that purpose is the way to go.
Yes, it does; though it needs to know that it’s a file of the appropriate type. Just opening a file would be enough; for a brand new file you need to either apply the syntax manually or save the file to disk with an appropriate extension to give Sublime the hint that it needs.
if you want to be sure everything is correct, a tool dedicated to that purpose is the way to go.
Can you suggest a validation / linter / checker tool to check HTML and CSS? I’m going to check out the Total Validator app, but open to other suggestions
I don’t know of any offhand, no; I don’t do a ton of front end web development personally. Someone else may have a suggestion though.
w3’s validator is probably fine and free to use:
https://validator.w3.org/
i’ve used this in the past, not free (does have a trial download) but it was really good imo for checking tons of html files on my local drives:
https://www.htmlvalidator.com/
something i’ve found recently that i’m using a lot is yellow lab tools. while not strictly an HTML/CSS validator it gives me tons of insight into what frontend things need to be fixed on a client’s website:
https://yellowlab.tools
this is the theme i use for code highlighting in sublime, you can use this site to create your own, just paste some code into the right pane and fiddle with things in the left pane IIRC.
I started with Solarized (dark) as a base as it seemed to have the most interesting and useful rules to me. I’m mainly interested in HTML and CSS theming.
https://tmtheme-editor.herokuapp.com/#!/editor/theme/VS_001