Sublime Forum

PHP highlighting missing from fresh 1.2.2 install

#1

Hi,

I just discovered Sublime Text, and it looks like exactly what I’ve been looking for in a Windows text editor for a long time.

However, upon installing it (1.2.2) for the first time, me and a coworker cannot select PHP syntax highlighting. It’s missing from the list entirely. PHP.tmLanguage exists as expected.

¿Qué?

0 Likes

#2

It’s there, but accessed in a confusing way - select the HTML syntax, and it’ll automatically pick up <?php ... ?> tags within your .php files.

0 Likes

#3

there is one issue for me
When I was editing a php file

I typed i,f,tab, it was given:

<?php if (condition): ?>
	
<?php endif ?>

if I choose snippet from menu->Tools->Snippets->PHP->if …, it was given:

if (condition) {
	# code...
}

did both inside the <?php ?> tag.

0 Likes

#4

Thanks for the heads up - I’ll fix that for the next beta.

0 Likes

#5

Aha! Thanks for the clarification. :smile:

0 Likes

#6

In the 20091010 beta, PHP now appears as a distinct file type, although selecting HTML will continue to work fine. The mentioned snippets have also been fixed.

0 Likes