Yeah it is great. But how many devs. you think need help avoiding newbie mistakes with CSS? Not even a programming language! None wil admit they do but I let CSS Lint be the judge ??
Anyway, I hate half baked statements on the internet and now I just did it myself. So even if 200% off-topic here is some more info on this trickery:
I dont know if it is correct or not. Do not care, it works. I have no access to perhaps more advanced editors doing this natively so have to fiddle. Also I imagine CSS-Lint god and godess are tough to beat with this so… Sublime text I believe have a plugin offering CSS lint but I use Notepad++
Install node.js – I use 64bit version https://nodejs.org/
Install CSS lint – check their site https://github.com/stubbornella/csslint/wiki/Command-line-interface
Install nppExec plugin for notepad++ – done via plugin manager.
Set up an “execute” in nppExec
cd c:\program files\nodejs
csslint.cmd --errors=compatible-vendor-prefixes --format=compact $(FULL_CURRENT_PATH)
Set it up in menu via npp-execs adv. options. Perhaps assign shortcut via Notepad++ shortcut mapper.
Show console dialog must be checked to see output form this command line script. Will pop up automatically.
On their github wiki they show code for each check. I only use vendor prefixes as lack of those is also a generic error. However they have own ultra conservative idea of what “should” be there. Can follow their strict suggestions or not. Point is this also show lacking prefeix that really should be there. But main idea is superfast check for “newbie” syntax errors resulting in parsing errors. If not asked to check for anything it will only show parsing errors. More adv. people will probably want to add more. Really important to know where they are coming from, why they HATE IDs for example. If a slave to their ways good luck with any WP theme. Does not take away benefits and one is supposed to know what to check for.
How to get file from internet in to Notepad++ with ease:
I use this https://addons.mozilla.org/en-US/firefox/addon/jsview/?src=search drop down showing all CSS and JS files, in tool bar, in right click menu, in status bar. Chrome probably have something similar. So possible to check X file with few clicks.
What if there is no file, just a code snippet? One that is selected in Notepad++. Use this which saves selection to temp file, then run CSS lint on it.
set TEMP_FILE = $(SYS.TEMP)\npp_sel.css
SEL_SAVETO $(TEMP_FILE) :a
cd c:\program files\nodejs
csslint.cmd --errors=compatible-vendor-prefixes "$(TEMP_FILE)"