PHP is most commonly used to echo out HTML, but for this project I'm using PHP to echo out JavaScript.
How can I set syntax highlighting in Notepad++ to assume that anything outside of PHP tags is JS?
For example, in:
function(){
var message='<?php echo 'value'; ?>';
}
I want the surrounding function
and various marks to be highlighted like JS, not like HTML.
(I know anything inside of echo
statements won't be highlighted as JS, so I'm not worried about that. Just JavaScript outside of the PHP tags)