User Defined Language as Default Language for New File



  • 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?



  • @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.


Log in to reply