1

I just had the idea of adding some visual distinction to my CSS/SASS comments so that I can notice them quicker when I rush trough a pile of files that I am currently working on. So I thought, why not use dingbats, you don't see stuff like that in your code, so why not start using it?

For example this cross dingbat here:

enter image description here enter image description here

enter image description here

My question - is it semantically wrong to use dingbats in CSS/SASS or JS or whatever code comments it is in that manner?

SASS doesn't seem to mind this. Page loads neatly as well.

enter image description here

Not for people with OCD though.

Tanasos
  • 3,928
  • 4
  • 33
  • 63
  • @Vucko , I am referring to the cross-looking dingbat icon in the commented section. Is a dingbat css-parsable? – Tanasos Aug 03 '16 at 09:51
  • I misunderstood you OP. Well, what do you get when SASS precompiles? – Vucko Aug 03 '16 at 09:59
  • The same output as the SASS input. – Tanasos Aug 03 '16 at 10:00
  • 1
    My take on this is that it's only "*wrong*" if you are abiding by a certain coding style guide which specifies a certain format or rules against comments of this style. If not, go wild ;) – Kyle O Aug 05 '16 at 05:32

0 Answers0