Home Download Buy Blog Forum Support

<?php ?> automatically wrapped around snippets?

<?php ?> automatically wrapped around snippets?

Postby sean on Sat Oct 24, 2009 6:44 am

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: Select all
<?php foreach ($variable as $key => $value): ?>
   
<?php endforeach ?>


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

thanks,
sean
sean
 
Posts: 14
Joined: Sat Oct 24, 2009 6:36 am

Re: <?php ?> automatically wrapped around snippets?

Postby jps on Sat Oct 24, 2009 6:50 am

This is fixed in the current beta version, http://www.sublimetext.com/beta
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: <?php ?> automatically wrapped around snippets?

Postby sean on Sat Oct 24, 2009 7:59 am

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.
sean
 
Posts: 14
Joined: Sat Oct 24, 2009 6:36 am

Re: <?php ?> automatically wrapped around snippets?

Postby jps on Sat Oct 24, 2009 8:20 am

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.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: <?php ?> automatically wrapped around snippets?

Postby sean on Sat Oct 24, 2009 8:42 am

awesome, thanks.
sean
 
Posts: 14
Joined: Sat Oct 24, 2009 6:36 am


Return to Technical Support

Who is online

Users browsing this forum: Alexa [Bot], Majestic-12 [Bot], Yahoo [Bot] and 33 guests