Maria Warnes

TextExpander Snippets for Developers

In my last post I listed TextExpander as one of my favourite productivity tools. Here are some of the snippets that I use when developing. You can find a .zip of them all at the bottom. Note: I use TextExpander v5, so they have only been tested on this version.

Comments

;htmlcom
<!-- % -->

;lesscom1
// % ///////////////////////

;lesscom2
// % -----------------------


Opening PHP

<?
<?php


Media Queries

;@media
@media (min-width: %filltext:name=px%px) {%|}


Lorem Ipsum

;loremshort
Lorem ipsum dolor sit amet.

;loremmid
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras in imperdiet lacus. Sed sit amet diam tincidunt, ultricies est vitae, pretium mi. Sed placerat enim ac purus tempor euismod. Mauris ex sem, scelerisque sed sapien eget, ornare vehicula massa. Pellentesque ut tortor nec magna facilisis mollis id vitae magna.

;loremlong
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras in imperdiet lacus. Sed sit amet diam tincidunt, ultricies est vitae, pretium mi. Sed placerat enim ac purus tempor euismod. Mauris ex sem, scelerisque sed sapien eget, ornare vehicula massa. Pellentesque ut tortor nec magna facilisis mollis id vitae magna. Quisque porttitor elementum varius. Nam cursus neque non sodales ullamcorper. Aenean sollicitudin, mauris vel eleifend feugiat, metus diam rhoncus nisl, posuere hendrerit ante ipsum quis augue. Mauris molestie commodo nunc, ac faucibus turpis dictum rhoncus. Nullam eget mauris eu lectus bibendum vestibulum. Nulla ornare sapien et odio iaculis, ut facilisis velit eleifend.


PHP Var Dump

;var_dump
?><pre><?php var_dump(%|); ?></pre><?php


Brand Colours

;fbhex
#3b5998

;fbrgb
59, 89, 152

;twhex
#00aced

;twrgb
0, 172, 237


Download