Search code examples
phphtmlhighlighting

highlight "<?php" ---- "?>" inside "<html>" --- "</html>" in notepad++?


<html>
   This is file is called "example.php".<br>
   <?php print "=== This is printed by a php 'print' statement<br>"; ?>
   This text is after the embedded php.
</html>

When either of the html tags, its mate is found, and both are given a distinctive color. But the php tags don't find their mates, and don't get highlighted. How can I get that behavior?


Solution

    1. Save your file in .php extention in notepad ++.
    2. If that does not sort the problem download the latest version of notepad++ from here.

    Here : it works see :) -

    enter image description here

    Let me know if anyother issues :)