Sublime Forum

PHP snippets not working and cant escape $ character

#1

Hello,

PHP snippets don’t seem to work at all. If I am in a php file or inside php tags in an html file, and i start typing ‘$_’, nothing pops up (and I saw that snippets for that exist).

Also, I made some custom snippets for Javascript, and they work, but I can’t escape some characters, for example ‘$’.

I tried using a backslash but it didn’t work.

This is my snippet, how would I change j to $ ?

    <content><![CDATA[

function j(id) {

	return document.getElementById(id);

} ]]></content>

Thanks

0 Likes