Community
    • Login

    Managing the User Languages tool

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 50 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.
    • S
      sagradamoly-stack
      last edited by sagradamoly-stack

      I’m having difficulty managing the User Defined Language tool. After working on “Styling” for a while I get a long list of failed attempts. It would be nice if I could simply save a new version over the previous version, but the tool doesn’t permit saving over the existing file. So I have to create a new version, and the list grows longer until it’s difficult to manage. Is there an easy way to do this? Like being able to tag & delete all the unwanted old versions at one time?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @sagradamoly-stack
        last edited by

        @sagradamoly-stack said in Managing the User Languages tolol:

        It would be nice if I could simply save a new version over the previous version, but the tool doesn’t permit saving over the existing file.

        That’s a misunderstanding. Notepad++ immediately updates its internal copy of a UDL as soon as you make the changes (even without closing the dialog). Then, when you exit Notepad++, it saves all its updated config files, including your updated UDL.

        You do not need to save as a new UDL and then later rename to make changes. It just automatically updates the UDL under the existing name when you make changes. (See user manual: UDL Naming and Saving at
        https://npp-user-manual.org/docs/user-defined-language-system/#naming-and-saving)

        S 1 Reply Last reply Reply Quote 1
        • S
          sagradamoly-stack @PeterJones
          last edited by

          @PeterJones Thanks for the reply. I’ve got an inkling of understanding how this works, but made a lot of mistakes getting to this point. I now have a quite good set of style definitions, but nothing works any more, likely because I’ve saved the results repeatedly under different names because of misreading the instructions. Is there any way to delete all the interim variations without losing all the work getting to a useful final result?

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @sagradamoly-stack
            last edited by PeterJones

            @sagradamoly-stack said in Managing the User Languages tool:

            Is there any way to delete all the interim variations without losing all the work getting to a useful final result?

            It depends on what you mean.

            En masse? No

            One at a time? Yes. In the UDL dialog, select each intermediate UDL from the drop-down, and click Remove. Since it’s likely on the order of a dozen or two, it won’t take you that long – less time than asking here took you, I’d wager.

            without losing all the work

            I mean, deleting the intermediate ones will obviously delete the intermediate stages. If you don’t want to lose them, but don’t want them in the N++ Language menu, use Export to save each to a separate XML file which you can then save in some backup directory, then Remove to take it out of the menu.

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