1

I want to have syntax highlighting for Volt, the Phalcon template engine, in Notepad++. The closest I have found online is this one for Twig which seems very similar, so I think perhaps that the idea for Volt came from Twig. However, the syntax highlighting provided by the one for Twig doesn't highlight the HTML code that is also in the file.

I want to rewrite the Twig example so that anything inside the Volt tags gets one syntax highlighting (similar to the Twig highlighting) and anything else gets the usual HTML highlighting. In the same manner that a PHP file has PHP highlighting inside <?php...?> and HTML highlighting elsewhere.

Can anyone give an example of how to do this? I tried looking at the xml files Notepad++ uses to know what highlighting to use for PHP but couldn't see anything that would explain how the highlighting is different inside and outside the PHP tags.

  • This is not possible without programming. If you check Notepad++ source code, you can see that PHP inside HTML is specifically programmed. Linked Q/A: superuser.com/q/1213671/287473 – miroxlav Sep 3 '17 at 23:23

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.

Browse other questions tagged or ask your own question.