Sublime Forum

PHP Autocomplete tag

#1

Hi all,

When i type <?php then [tab] [tab] the result is;

<?<?PHP ?>

Why does it add <? at the beginning?

How do i correctly autocomplete it?

Many thanks
Mike

0 Likes

#2

Type “php” then press tab. “<?” is added automatically as you can see from the result you got.

1 Like

#3

Paapaa, youre a good man, Ive always said that!

Thanks :slight_smile:

0 Likes

#4

I was excited to come across your answer, but when I tried entering php [tab] this autocompleted as <php><php>

However, when I tried php [space][delete][tab] it autocompleted as <?php ?>
Your way sounds a lot easier. Any ideas why your answer didn’t work for me?

I’m using emmet 2.0.2 that I found in this forum https://forum.sublimetext.com/t/emmet-2-0-alpha/47933

0 Likes