Community
    • 登入

    User Defined Language as Default Language for New File

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

      I added a user defined language only to add folding to my .txt files, I just wanted to add the functionality where when I type

      // Spoke to John Doe
      Discussed this
      that
      and the other thing
      --
      // Spoke to Jane Doe
      Discussed this
      that
      and the other thing
      

      I want to see

      // Spoke to John Doe
      // Spoke to Jane Doe
      

      This seemed easy enough to do by creating a User Define Language however, when I click on the new file button, I was hoping to immediately have this functionality but the new files default to normal text instead of the User Defined Language which does not seem to be an option.

      Is there a way to accomplish this?

      EkopalypseE 1 條回覆 最後回覆 回覆 引用 0
      • EkopalypseE
        Ekopalypse @Rafael Fontan
        最後由 編輯

        @Rafael-Fontan

        Afaik there is no builtin way to assign new documents to an UDL.
        Solution are possible by using scripting language plugins.
        Let us know if you want to go this way.

        1 條回覆 最後回覆 回覆 引用 3
        • 第一個貼文
          最後的貼文
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors