Community
    • Login

    Creating a user-defined-language that combines 2 languages

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 2.2k Views 1 Watching
    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 Offline
      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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors