Skip to content

Instantly share code, notes, and snippets.

@woffleloffle
Created February 21, 2014 12:23
Show Gist options
  • Save woffleloffle/9133354 to your computer and use it in GitHub Desktop.
Save woffleloffle/9133354 to your computer and use it in GitHub Desktop.
Sublime Snippet to wrap a `print_r` with `pre` tags.
<snippet>
<content><![CDATA[
echo "<pre>";
print_r (\$${1:variable});
echo "</pre>";
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>echopre</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
@woffleloffle
Copy link
Author

Writes the following into your *.php file:

echo "<pre>";
print_r ($variable);
echo "</pre>";

..and highlights the word variable for ease of use.

I use this all the time during PHP dev.

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