Hello again. Zen Coding is fantastic, but perhaps my CSS Snippet below could be regarded as an interesting addition to it
The trigger is ‘propx’, so if you type the following on a blank line and press TAB:** po to le di propx**
you will obtain:
position: ;
top: ;
left: ;
display: ;
But, more interestingly , if you type: po absolute to 5px le 12px ma 5px pa propx
You will obtain:
position: absolute;
top: 5px;
left: 12px;
margin: 5px;
padding: ;
You will be left on your original line (with an extra semi-colon) but just press Ctrl-Shift-K to delete the line.
You can use apostrophe’s, hyphens, etc., when supplying values, e.g. fonts. The only proviso is that if, for example, your font includes the two letters ‘le’ then separate them with a back-slash ‘l\e’ to prevent the word ‘left’ appearing.
I’ve not been working on this too long, so currently the abbreviations you can use are: cli cl co cu ff fl fo he le ma bo di le pa po ri to
Some feedback would be appreciated Andy.
<snippet>
<content><![CDATA[$0${TM_CURRENT_LINE/\\|(?:\b| )((BO)|(CLI)|(CO)|(CU)|(CL)|(DI)|(FF)|(FL)|(FO)|(HE)|(LE)|(MA)|(PA)|(PO)|(RI)|(TO)|(WE)) |( {2,}|\t)/?2:;\nbottom\: :?3:;\nclip\: :?4:;\ncolor\: :?5:;\ncursor\: :?6:;\nclear\: :?7:;\ndisplay\: :?8:;\nfont-family\: :?9:;\nfloat\: :?10:;\nfont\: :?11:;\nheight\: :?12:;\nleft\: :?13:;\nmargin\: :?14:;\npadding\: :?15:;\nposition\: :?16:;\nright\: :?17:;\ntop\: :?18:;\nwidth\: /gi};
]]></content>
<tabTrigger>propx</tabTrigger>
<scope>source.css meta.property-list.css</scope>
<description>po to, etc</description>
</snippet>