Weird php syntax highlighting


#1

Hello, how are you?

I’ve been using atom for a while, and it has been so good to me that I uninstalled Dreamweaver, even tho I pay for the Creative Cloud package.

However, lately, there are some weird highlighting issues with php.

The pictures below show the problems.

It messes up with the rest of the code.

Is there something I can do to avoid this problem? I tried going back to the original theme, but it does not fix it.

Thank you!


#2

You can update to 1.13.0 which will fix the problem :grinning:.


#3

Hello!

It’s actually on 1.13.1 already


#4

Hmm…then can you check the lower-right corner and make sure the language is PHP and not HTML?


#5

Just did, it is indeed php!


#6

Weirdly enough, if a use tab before the <?php , it seems to fix.
However, it’s not actually a fix, it’s more of a work around, because I’d like to have it without the tab.


#7

Ok, can you file an issue on https://github.com/atom/language-php? I’ll try to take a look at it.