My First Brackets Extension: CSSLint
Join the DZone community and get the full member experience.
Join For Freethis weekend i worked on my first extension for brackets - csslint . the experience was pretty interesting. much like writing extensions for coldfusion builder, your time is split between creating the ui/extension connection points and the actual logic of the extension itself. in this case, since it was my first extension, i'd say 95% of was on the "extension" aspect and the rest on running csslint. which is to be expected i think. the csslint tool is trivial to implement in code. in fact, once i got the current document in brackets i just had to do this:
results = csslint.verify(text);
here's a quick screen shot of the results. if you are curious - it was run on a file from jquery ui.
here's a shot showing a complete view of brackets and my extension running:
if you are playing around with brackets, you can download the extension and give it a shot. let me know what you think.
Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments