Skip to content

Instantly share code, notes, and snippets.

@d1i1m1o1n
Last active November 4, 2015 09:12
Show Gist options
  • Save d1i1m1o1n/654ebd55428f403909d3 to your computer and use it in GitHub Desktop.
Save d1i1m1o1n/654ebd55428f403909d3 to your computer and use it in GitHub Desktop.
PHP snippet echo pre print_r for sublime text
<snippet>
<content><![CDATA[
echo '<!-- '; print_r(\$${1:foo}); echo ' -->';
]]></content>
<description>PHP: echo html comment print_r</description>
<scope>source.php</scope>
<tabTrigger>dump html comment</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
echo '<pre style="display:${1:none};">'; print_r(\$${2:foo}); echo '</pre>';
]]></content>
<description>PHP: echo pre print_r</description>
<scope>source.php</scope>
<tabTrigger>dump</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<!-- <?print_r(\$${1:foo});?> -->
]]></content>
<description>PHP: html comment print_r</description>
<tabTrigger>dump html comment</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<pre style="display:${1:none};"><?print_r(\$${2:foo});?></pre>
]]></content>
<description>PHP: pre print_r</description>
<tabTrigger>dump</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment