• Login
Community
  • Login

New enhancement for User Defined Language System

Scheduled Pinned Locked Moved General Discussion
23 Posts 9 Posters 20.9k 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.
  • D
    donho
    last edited by Feb 9, 2019, 11:18 PM

    @rddim Thank you for the bug report. 2 bugs has been fixed here:
    https://github.com/notepad-plus-plus/notepad-plus-plus/commit/494b4bc0dba79511ca7673b7995a2205efdc8bfa

    @MAPJe71 said:

    Where will this new folder be located?
    Alongside autoCompletion?

    Yes.

    M 1 Reply Last reply Feb 10, 2019, 1:20 AM Reply Quote 3
    • M
      Meta Chuh moderator @donho
      last edited by Meta Chuh Feb 10, 2019, 1:27 AM Feb 10, 2019, 1:20 AM

      @donho 👍

      splendid, i’ve tested your commit and can not reproduce any of the reported issues anymore.

      i’ve also tested what could happen, if we have multiple udl xml files with the same udl language name in each of them:

      all modifications to a multiple existing udl with the same given name, will be correctly written to the corresponding
      userDefineLangs\udlCollectionName.xml file (or userDefineLang.xml, if they were originally there) 👍

      much appreciated, cool feature

      A 1 Reply Last reply Feb 10, 2019, 2:17 PM Reply Quote 3
      • A
        Alan Kilborn @Meta Chuh
        last edited by Feb 10, 2019, 2:17 PM

        @Meta-Chuh

        I like your enthusiasm…for everything Notepad++ related, including the topic of this thread. How about compiling all of the information on UDL, including all the tricks and tips, and publishing it somewhere?

        M 1 Reply Last reply Feb 10, 2019, 2:50 PM Reply Quote 1
        • M
          Meta Chuh moderator @Alan Kilborn
          last edited by Feb 10, 2019, 2:50 PM

          @Alan-Kilborn

          i agree with you, but i think it is not necessary to put topics like the new udl features in the faqs, as it is not a feature that will be used by the majority of notepad++ users.

          publishing too much information will clutter the faqs and i assume that people, who are capable of creating an udl, will use the search option of the notepad++ community forum 😉.

          if we get too many questions about the new udl features in the future, we all can re-evaluate together, if it makes sense to add this to the faqs.


          btw and off topic: alan, i guess i will try not disagree with you in the near future again … my experience has taught me, that you have good reasons and a very good sense of prediction. 👍

          A 1 Reply Last reply Feb 10, 2019, 3:49 PM Reply Quote 2
          • R
            rddim
            last edited by rddim Feb 10, 2019, 3:09 PM Feb 10, 2019, 3:08 PM

            Yes, this is a great feature to have separated UDLs. I really hope that can be used to have an option to install UDLs via Plugins Admin (for example). My idea is to have a new tab for this and UDLs that are stored in a repository with option for the users to add and commit a new ones.

            1 Reply Last reply Reply Quote 1
            • A
              Alan Kilborn @Meta Chuh
              last edited by Meta Chuh Feb 10, 2019, 4:52 PM Feb 10, 2019, 3:49 PM

              @Alan-Kilborn

              I didn’t mean in the FAQ here

              i’m in no position to publish anywhere else, except here at the community, and in this case you’ve addressed me directly, which also means not addressing members that have the needed authority to do so.

              knowledge provided in individual postings…and pull it together all in one place.

              i might be of service to answer single and simple questions in an understandable way, but i don’t think i am capable of writing a whole manual of this extent.

              would you have the time to do so ?
              if yes, i suppose it will also be one of the best guides around, as you are not yet very familiar with udl and therefore you are able to write a guide that can easily been understood by inexperienced users, due to writing it while learning to use it.

              reason: in my experience, many guides written by pro’s or by me, are difficult to understand, if a reader wants to start off from zero knowledge.
              and on the other hand, i’ve seen manuals, written by (former) beginners, which are perfect for both beginners and pros, as they are written in a way the author himself would have understood as a beginner, if he had such a guide when he started out himself.

              I don’t know about that!!!

              i suppose it’s sarcastic, but if not, you will understand if you re-read the only one post where i ever disagreed with you, and all of it’s surroundings.

              1 Reply Last reply Reply Quote 0
              • P
                pnedev
                last edited by Feb 11, 2019, 2:52 PM

                Hi @donho ,

                Sorry for the off-topic question but when will this PR be merged:
                https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5190 ?

                Are you also planning to merge PR https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5225 ?

                1 Reply Last reply Reply Quote 2
                • S
                  scot-65
                  last edited by Feb 21, 2019, 4:13 PM

                  A few concerns on the proposed UDL enhancement…

                  a) What will be the file naming convention of the individual UDL’s?
                  b) UDL’s are user settings. Are user settings located in the AppData area and not in Program Files?
                  c) Should the Auto Complete files, which are considered user settings, (also) be located in the AppData section?
                  d) I wish to package together the UDL file(s) and Auto Complete file(s) as one zip file. Will there be file name conflicts?

                  Scot-65

                  M 1 Reply Last reply Feb 21, 2019, 5:51 PM Reply Quote 1
                  • M
                    Meta Chuh moderator @scot-65
                    last edited by Meta Chuh Feb 21, 2019, 5:53 PM Feb 21, 2019, 5:51 PM

                    @scot-65

                    a) What will be the file naming convention of the individual UDL’s?

                    the file name can be literarily anything.xml.
                    the included udl or multiple udls in this “collection” do not have to match the .xml file name.

                    b) UDL’s are user settings. Are user settings located in the AppData area and not in Program Files?

                    yes, they will be created at %AppData%\Notepad++\userDefineLang.xml, and can be moved/copied/renamed to %AppData%\Notepad++\userDefineLangs\.
                    this folder will probably be the preferred location for a future deployment of a descriptive yourUdlCollection.xml, instead of overwriting an existing userDefineLang.xml.

                    c) Should the Auto Complete files, which are considered user settings, (also) be located in the AppData section?

                    this is a tricky question, because on one hand they are currently located at %ProgramFiles[(x86)]%\Notepad++\autoCompletion, but on the other hand it would make sense to allow a user specific version at %AppData%\Notepad++\autoCompletion\ which is, afaik, currently not implemented.

                    d) I wish to package together the UDL file(s) and Auto Complete file(s) as one zip file. Will there be file name conflicts?

                    with the new udl collections: no, as they can have any names, and don’t reside at the same location as a default userDefineLang.xml.
                    with the autocompletion.xml files themselves yes, as a same name xml, like html.xml, would replace the existing file at %ProgramFiles[(x86)]%\Notepad++\autoCompletion.

                    note: this information is based on the current pre-release builds, with the newest udl features already implemented.
                    anything currently known, might (or might not) still be subject to change.

                    1 Reply Last reply Reply Quote 1
                    • C
                      Christoph von Wittich
                      last edited by May 2, 2019, 9:00 AM

                      Could you please search for these .xml files in %ProgramFiles%\Notepad++\userDefineLangs folder as well?
                      We would like to preinstall extra UDL files for all our users.

                      M 1 Reply Last reply May 2, 2019, 9:42 AM Reply Quote 0
                      • M
                        Meta Chuh moderator @Christoph von Wittich
                        last edited by May 2, 2019, 9:42 AM

                        welcome to the notepad++ community, @Christoph-von-Wittich

                        if you want to deploy udls for all users right now, you could use a %ProgramData% install (see option 1).

                        this installation type will allow deployment of udls for all users to %ProgramData%\Notepad++\userDefineLangs\.
                        it will also allow central settings for all users, and enable users to use plugins admin without admin rights, e.g. to update plugins.

                        another way for default installs, is to use the cloud settings to define a locally shared folder, which is accessible for all desired users. note: to share this setting on default installs, you have to define a config.model.xml, which will be deployed as config.xml to all users that do not have a config.xml yet, or alternatively make the changes to the existing config.xml files located at each user’s %AppData%.

                        best regards.

                        1 Reply Last reply Reply Quote 2
                        • C
                          Christoph von Wittich
                          last edited by May 2, 2019, 11:16 AM

                          Copying the userDefineLangs to %ProgramData% does not work.
                          And installing the whole application to %ProgramData% is a really bad idea security wise and will be blocked by AppLocker anyway.

                          1 Reply Last reply Reply Quote 0
                          • gupllu guplluG
                            gupllu gupllu
                            last edited by May 24, 2022, 2:05 PM

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • D donho unpinned this topic on Dec 28, 2022, 11:25 AM
                            • First post
                              Last post
                            The Community of users of the Notepad++ text editor.
                            Powered by NodeBB | Contributors