Skip to content

Instantly share code, notes, and snippets.

@richardbuff
Last active August 29, 2015 14:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardbuff/ca05441197668ae28b68 to your computer and use it in GitHub Desktop.
Save richardbuff/ca05441197668ae28b68 to your computer and use it in GitHub Desktop.
Sublime Snippets For PHP echo of HTML opening and closing tags
// Save as: php-echo-open-html.sublime-snippet
<snippet>
<content><![CDATA[
echo '<${1:div} ${2:class}="${3:value}">';
]]></content>
<description>PHP echo statement with opening html tag with class</description>
<tabTrigger>phpechohtmlopen</tabTrigger>
<scope>source.php.embedded.block.html</scope>
</snippet>
// Save as: php-echo-close-html.sublime-snippet
<snippet>
<content><![CDATA[
echo '</${1:div}> <!-- ${2:.}${3:div} -->';
]]></content>
<description>PHP echo statement with closing html tag and comment</description>
<tabTrigger>phpechohtmlclose</tabTrigger>
<scope>source.php.embedded.block.html</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment