Community
    • Login

    Creating a user-defined-language that combines 2 languages

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • alec-wA
      alec-w
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors