Sublime Forum

Sublime Text 2.0.2 build 221 PHP highlighting bug

#1

I have come across a quite annoying bug where if i place php inside css the left brace prevents it from detecting the php correctly and then any quotes inside the php highlight the rest of the code improperly.
Here are comparison shots from other text editors as well as sublime. I am running version 2.0.2 build 2221 (Win10).

This is an image of each working with sublime not
https://s4.postimg.org/uc28a5xpp/sublime_bug.png

0 Likes

#2

Try https://www.sublimetext.com/3dev

0 Likes

#3

So you’re saying update to beta software and have to update almost every other day? Would it be harder to grab the regex from a .tmLanguage file in 3 and just move it back to 2 so i wont have to update as often and it gets the new highlighting. I have 3 different plugins i maintain for 2 and it would be tiring to update them to 3 and then update every time there is a new patch. I want to switch to 3 eventually but when its further along in the RC stages.

0 Likes

#4

No, you can’t just copy a regex from the new .sublime-syntax format and have it work in a .tmLanguage file. There are new features in highlighting engine of ST3, and the PHP syntax has been largely rewritten.

There are new betas about once every few months, and new dev builds once every few weeks. The only reason I suggested the newest dev build is that a new feature has been added to the highlighting engine and some bugs fixed in the PHP syntax since beta 3114.

You are certainly welcome to stay on Sublime Text 2, but I am certain we won’t be updating any of the syntaxes for it since we’ve moved on to a new format and rewritten many of the syntaxes in the new format.

From Package Control statistics since July 1st, approximately 90% of users are running ST3 now.

4 Likes

#5

Haha, well how about that. I must be behind the times. I’ll just update like that 90% and just make life easier!

0 Likes

#6

If only 10% of the user base is on ST2 why is it the version being promoted on google?

0 Likes

#7

You’d have to ask Google why they choose to highlight that. Either way, the link above that is the download link for ST3.

2 Likes

#9

Despite what you believe. Google is still pointing to Sublime Text 2 as protrayed by 4 different browsers. It should be updated :slightly_smiling:

0 Likes

#10

In my browsers, only the link to “Sublime Text 2” points to version 2. The explicit link to download links to the download page for Sublime text 3. I assume it does in your browsers as well because in the screen shots you posted above, the blurb under it says:

Added Indexing Status to the Help menu to give more information…

Which is part of the release notes for Sublime Text 3, build 3126.

I assume that’s because if you go to https://sublimetext.com and click the download link, it also takes you to the download page for Sublime Text 3.

For what it’s worth, my work windows machine uses Bing instead of Google as the default search engine, and Bing shows Sublime Text 2 and Sublime Text 3 that area, but the download link still points to Sublime Text 3.

1 Like

#11

Alright, thanks for the help. I was just setting up some rigs the other day and wanted quick access to ST3 but found that I had to actually access the site before getting a link to version 3.

1 Like

#12

I’m not a web guy, but I’d be curious to know if the reason for this has anything to do with Google prioritizing Sublime Text 2 because there are more links to that version of the page from other web sites than pages that explicitly link to the version 3 page.

One thing that definitely seems a little off is that the animated images on the main page show Sublime Text 2 in the window caption instead of Sublime Text 3, although except for that there’s nothing obviously different between the two.

2 Likes