Sublime Forum

Snippet not being called outside of PHP tags

#1

I have this snippet:

[code]
<![CDATA[

<?php echo $1 ?>

]]>

ve

source.php, source.html
Creates skeleton for php echo in a html-based view
[/code]

It doesn’t work in a view.tpl.php file I’m working in unless I’m inside the <?php ?> tags already. I tried setting source.html by itself, but that doesn’t do the trick. The readout in the bottom right corner says ‘HTML’ even though ‘PHP’ is selected if I look in the dropdown list.

0 Likes

#2

change source.html to text.html

0 Likes