Creating a user-defined-language that combines 2 languages



  • I am trying to get syntax highlighting for Volt in Notepad++. This is a templating language that forms part of phalcon. The integration of language works in a similar way to PHP - any code between the tags is run by the server, any code outside the tags is ignored by the server (just plain HTML). I want to add syntax highlighting for Volt whilst also having highlighting for the HTML portions of the document (like how a PHP file gets HTML highlighting for the main body but anything inside <?php ?> gets PHP highlighting).

    I tried looking at alngs.model.xml and stylers.model.xml to understand this but couldn’t see anything to explain the HTML highlighting in a PHP file.

    Any help implementing this would be great. The closest thing I found so far was this one for Twig.


Log in to reply