Community
    • Login

    Homemade UDL location

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 979 Views
    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.
    • Sayanel01S
      Sayanel01
      last edited by

      Hi there,
      I defined my own language:
      Language -> User Defined Language -> Define your language…

      It show in the User language list, I can use it. But it does not show up in the “User Defined Language folder” (C:\Users\me\AppData\Roaming\Notepad++\userDefineLangs)

      I could export it and add it again in this folder… But where is it now? Why is it not is this folder?

      Image example : https://i.imgur.com/WfZKkU3.png

      Thanks

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Sayanel01
        last edited by

        @Sayanel01 said in Homemade UDL location:

        I could export it and add it again in this folder… But where is it now? Why is it not is this folder?

        it’s in the C:\Users\me\AppData\Roaming\Notepad++\userDefineLang.xml file instead. That’s where UDL go when you create them from inside Notepad++. (The userDefineLangs subfolder is a relatively-recent addition to the UDL interface; when that directory was added, the developer didn’t change where a new UDL gets saved initially. This means that, by default, if you create all your UDL from inside Notepad++ like a normal user, they will all be stored in that one file, rather than in separate files in the subfolder. My personal opinion is that this was a bad design choice by the Developer, but it’s not broken, just annoying, so I live with it.)

        My steps when I create a new UDL:

        1. Develop the UDL from inside Notepad++ GUI and Save as… to give it a name.
        2. Use the Export button to save it in my equivalent of C:\Users\me\AppData\Roaming\Notepad++\userDefineLangs (which is generically 🛈 referenced as %AppData%\Notepad++\userDefineLangs\ or the ...\userDefineLangs\ directory in the approriate one of the portable or cloud configuration or -settingsDir folder)
        3. Counter-intuitively: use the Remove button to delete the UDL from the old-style userDefineLang.xml
        4. Close Notepad++
        5. Run Notepad++ to get it to re-read the config files, including the UDL.

        At this point, your UDL is in a separate file in the subfolder instead of in the combined file. Any changes you make to it will be correctly saved in the file in the subfolder.

        Sayanel01S 1 Reply Last reply Reply Quote 3
        • Sayanel01S
          Sayanel01 @PeterJones
          last edited by

          @PeterJones Clear and perfect explanation, thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors