Skip to content

Instantly share code, notes, and snippets.

@agibsonsw
Created February 14, 2012 21:54
Show Gist options
  • Save agibsonsw/1830837 to your computer and use it in GitHub Desktop.
Save agibsonsw/1830837 to your computer and use it in GitHub Desktop.
CSS propx snippet
<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>
@agibsonsw
Copy link
Author

Sublime CSS Snippet that allows:
di po le 4px to 5px propx

to become
display: ;
position: ;
left: 4px;
top: 5px;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment