I'm discovering a lot about regular expressions . I've managed to compact it such that terms such as bb, bbc, brs construct:
border-bottom, border-bottom-color, border-right-style
but the separate words (border, bottom, color) only appear once within the regex expressions. That is, it grabs the term 'border' and then decides whether it needs to append '-bottom' and then perhaps '-color'. (It also means I no longer need to type hyphens.) In a similar way I've combined margins with padding. I like this
It's amazing what can be achieved in one Snippet (with a little effort..)! I'm having second thoughts about the help text though, as it's making it a bit verbose. I might change my mind and just have a second snippet (proph) which just produces help text within a css comment, or just abbreviate the help text.
I would still like to be able to put apostrophes or quotes around font names, but they throw everything off(?).
Again, I'm not attempting to substitute for ZenCoding, but I like the idea of a single Snippet being capable of all of this. Regards, Andy.
PS It occurred to me that, using the technique above, I could also provide property-values that are contextual (like ZC..). I'll probably not do this though..