sublimetext3 - Sublime Text 3 - Syntax highlighting breaks when using PHP in JS context -
i using sublime text 3, build 3114. should latest version available today. before installing update, javascript code highlighted correctly when using php in context. losing syntax highlight functions javascript unless close , re-open tag <script>
in flow.
here screen shot of issue i'm having (i wrote few random lines give idea):
the last call of removeclass
method in function myfunctwo
has lost syntax highlighter because used <?php echo $id; ?>
in line above. lines of js code below php, outside js function, not highlighted. if closed </script>
tag , re-opened it, syntax highlighter start working again.
has faced issue? there can php highlighter? haven't modified theme files , using default theme twilight. also, syntax highlighting set php because file contains php code, js , html. if set 'javascript', syntax highlighter ignore php code giving green color of "test" there in line.
thanks lot sharing thoughts!
close javascript , concatenate, this:
removeclass("test" + <?php echo $id; ?>);
Comments
Post a Comment