0

The file extension and language is PHP, and need to highlight HTML and JavaScript at the same time with the main language PHP in Notepad++

Example of code to highlight:

<?php
    $form_name = 'index';
?>

<!doctype html>

<html>
    <head>
        <script>alert('One = ' + 1);</script>
    </head>

    <body>
        <input type="text" value="<?php $form_name; ?>">
    </body>
</html>

Thank you

1 Answer 1

0

Notepad++ 6.7.9.2 from PortableApps I have here does that out of the box. File is named "file.php"

see image

You must log in to answer this question.

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