Sublime Forum

<?php ?> automatically wrapped around snippets?

#1

i’m playing with php snippets, but for some reason it’s wrapping all my snippets in <?php and ?>.

for example, i type “foreachTAB” and i get:

[code]<?php foreach ($variable as $key => $value): ?>

<?php endforeach ?>

[/code]

but this is not what is in the file for this snippet. any clues as to how to stop this behavior?

thanks,
sean

0 Likes

#2

This is fixed in the current beta version, http://www.sublimetext.com/beta

0 Likes

#3

thanks for the quick reply, that is the version i am using. actually if i recall correctly it wasn’t doing this until i switched to the beta.

0 Likes

#4

Looking into this more, it turns out some of the PHP snippet scopes were improved in 20091010, but not all of them - foreach was one of the ones that was missed. I’ll update them all for the next beta.

0 Likes

#5

awesome, thanks.

0 Likes