Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Creating a user-defined-language that combines 2 languages

    Help wanted · · · – – – · · ·
    1
    1
    1730
    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-w
      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
      Copyright © 2014 NodeBB Forums | Contributors