Skip to content

Instantly share code, notes, and snippets.

@christophermlne
Last active December 15, 2015 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophermlne/5281962 to your computer and use it in GitHub Desktop.
Save christophermlne/5281962 to your computer and use it in GitHub Desktop.
A Sublime Text snippet that wraps a print_r with pre tags. A tab stop highlights the $var inside the print_r function. The tabTrigger is 'ppre' within the php scope.
<snippet>
<content><![CDATA[
print '<pre>';
print_r(${1:var});
print '</pre>';
]]></content>
<tabTrigger>ppre</tabTrigger>
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment