Sublime Forum

?> <?php Tags within a php block

#1

Hey guys, textmate had a great function when you typed the word php within a php block it would turn

function scan_non_payment(){
die();
}

into

function scan_non_payment(){
?> <?php

die();

}

so it was aware if it was within php scope or html scope and do the opposite so you can intermix php and html…

in sf2 php works just in plain text it turns into <?php ?> but that’s it it won’t work further within the functions…

anyway to get the same functionality?

0 Likes

#2

anyone?

0 Likes