1

TextWrangler for Mac (v5.0.2) sometimes cannot highlight HTML & PHP codes (mixed) properly, given that the syntax is perfectly correct.

Incorrect Highlighting

How to resolve this issue?

Raptor
  • 53,206
  • 45
  • 230
  • 366

2 Answers2

0

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. enter image description here

Ammar Mujeeb
  • 1,222
  • 18
  • 21
  • "PHP in HTML" is selected by default, but still, highlighting is not available for some files... – Raptor Feb 01 '17 at 02:45
0

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.

Nour
  • 143
  • 1
  • 15