Moved your post into its own thread (came from Variable Highlighting suddenly stops working), please post a new thread for your issues rather than responding to old resolved ones.
I seem to be unable to reproduce your issue, I wrote a small test case to try and trigger the bug but it appears to work fine for me:
May be it something in my settings? Because i done same thing. I was copied that part from my working file, create new file, save it as .php and paste that part in it.
Now i check it one more time but copy snippet from this page. And it still reproduces but now $route was highlighted and $Criteria and $exportCsv still not, but i think it’s because that variables isn’t initialized before.
Being copied and pasted it doesn’t work: $track and $tindex doesn’t highlights. But if i erase [‘Track’] near $cart it works. Even if i return [‘Track’] back it stil working! Very strange behavior.
I’ll respond here in case anyone else is reading (or will be reading) this.
I’m still unable to reproduce the issue with either the provided snippets or the file you shared with me in private. I did notice though that you named 2 variables in the privately shared file that are only letter in length. Note that your “Variable Highlighting” settings are set by default to a minimum length of “4”, and in your screenshot to “2”, so that would explain why those dont work.
@toddw anything you can think of that we could try to reproduce his issue? Could it be related to the version of PHP installed?
@nathanr i know about setting of 2 letters length and mention that in your private message. Regardless that setting i have other one letter variable that IS highlighted.
Here is screen capture where you can see that setting isn’t respected and at least the different one letter vars is highlighted http://screencast.com/t/3okZHXgF1
In case it’s related to versions i’m using:
Komodo Edit, version 8.5.4, build 14424, platform macosx. Built on Wed Aug 13 23:56:46 2014.
Mac OS X 10.6.8
Setting for PHP at Prefs —> Languages —> PHP under “use this interpreter” i have “Find on path” other fields is empty, “Comment style” —> “//”