4

Is there a way to fix the incorrect syntax highlighting in Notepad ++ for heredoc an nowdoc? It doesn't recognize the ending tag and makes the rest of the document highlighted as if it were in quotes.

2

2 Answers 2

2

Remove the spaces and/or tabs. The syntax highlighting for newdoc and heredoc in Notepad++ expects the closing tag to be at the far left. Any indentation causes the syntax highlighting to break.

0
0

Support for the flexible heredoc style was added in Notepad++ version 8.4.

You can fix this issue by downloading the latest version here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .