Sublime text snippet: php echo

I can be very lazy… So Sublime Text’s snippets are one my best coding friends. Sublime text provide some who are very interesting, but I’m not happy with the default echo.
There is no parentheses, and as echo is a function, I prefer to use it, as a function. A function have parentheses.

With this one, just by typing echo + Tab in, per exemple, HTML files, or HTMl blocks in my PHP files, Sublime Text will insert a full <?php echo(); ?> with parentheses, and place the cursor inside them.

The Sublime Text snippet

Published by

Constantin Guay

Currently Data Project Manager and Scrum Evangelist at NetMediaEurope, european leader in IT B2B news site (more than 12 million unique visitors per month). Passionate by user experience and data science. Scrum evangelist

Leave a Reply

Your email address will not be published. Required fields are marked *