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

0

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

see image

0

A similar question was asked before by a different user.Here's the solution and the link to the original post.

http://bit.ly/1SR3yiq

Hope it helped.

  • Please quote the essential parts of the answer from the reference link(s), as the answer can become invalid if the linked page(s) change. Aside from that the link does not answer the question. – DavidPostill Jun 27 '15 at 7:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.