Community
    • 登入

    Creating a user-defined-language that combines 2 languages

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    1 貼文 1 Posters 2.0k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • alec-wA
      alec-w
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • 第一個貼文
        最後的貼文
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors