TextWrangler for Mac (v5.0.2) sometimes cannot highlight HTML & PHP codes (mixed) properly, given that the syntax is perfectly correct.
How to resolve this issue?
TextWrangler for Mac (v5.0.2) sometimes cannot highlight HTML & PHP codes (mixed) properly, given that the syntax is perfectly correct.
How to resolve this issue?
You can select "PHP in HTML" option from footer/status bar in TextWrangler as shown in the image. Moreover make sure extension of the file is php.
This is a known issue for both TextWrangler and BBEdit. The work-around is to select another programming language on the bottom left, and then reselect PHP in HTML
. It seems that some actions trigger this bug.