Sublime Forum

Snippet not workig

#1

Hi

I recently started to use the PHP framework Laravel, and they have a series about using Sublime Text so I thought that I would give it a try.

I’m using Sublime Text 3, build 3083 (Windows) and was trying to add a snippet
<snippet> <content><![CDATA[ public function ${1}() { ${2} } ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>met</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.php</scope> </snippet>

In the tutorial video it work, but my version, does not work, unless I uncomment the SCOPE tag

Is that a common thing or did I miss something ?

Thanks in advance

Kind regards
Steen

0 Likes

#2

Try embed.php for the scope. (or embedded.php in my poor memory) There is a scope change since a ST build.

0 Likes

#3

He is on 3083 though.

source.php should also work on dev builds when you have the <?php tag in the file, which is not required sometimes iirc.

0 Likes