Community
    • Login

    How to Share a Recorded Marco with others?

    Scheduled Pinned Locked Moved General Discussion
    macro
    7 Posts 6 Posters 19.6k 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.
    • Anwesh GangulaA
      Anwesh Gangula
      last edited by

      I’ve created a macro for a process of Find & Replace. Now I want to share it with my co-workers. How can I do that?

      Scott SumnerS 1 Reply Last reply Reply Quote 1
      • Scott SumnerS
        Scott Sumner @Anwesh Gangula
        last edited by

        @Anwesh-Gangula

        Locate your shortcuts.xml file. It will either be in %APPDATA%\Notepad++ (type that in the Windows Search programs and files… box (obligatory nod to @PeterJones), or in the same folder as notepad++.exe.

        Open your shortcuts.xml and you will see various sections, one of which is <Macros>. Inside this section will be, obviously, your macros. Locate the one(s) you are interested in and copy the lines between (and including):

        <Macro name=".......">
        ...
        ...
        ...
        </Macro>
        

        Locate and edit shortcuts.xml on a different computer and insert the copied macro definition; a good insertion point may be right before the </Macros> line. Save the file. If you use Notepad++ to do this insertion, restart Notepad++ and the macro should be available.

        1 Reply Last reply Reply Quote 1
        • CrossBound.techC
          CrossBound.tech
          last edited by

          Thank you. I was wanting to use a macro I created on a different computer and was able to do it with these instructions.

          1 Reply Last reply Reply Quote 1
          • Janice PutmanJ
            Janice Putman
            last edited by

            the macros which I have created do not show in my shortcuts.xml file. is there somewhere else they could be?

            i am on a windows 10 machine.

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

              @Janice-Putman: Which shortcuts.xml did you look in: the one in your installation directory (same directory as notepad++.exe) or the one in %AppData%\Notepad++\?

              If your NPP menubar’s ? > Debug Info shows “Admin mode: OFF”, then it will be in your AppData hierarchy. If it’s “Admin mode: ON” (aka, a portable copy), then it will be in your notepad++.exe directory (the “Path: …” from the Debug Info).

              1 Reply Last reply Reply Quote 1
              • guy038G
                guy038
                last edited by

                Hi, @PeterJones,

                At the end of your previous post, you spoke of the Admin mode flag, in the Debug Info window. Personally, I would have spoken of the Local Conf mode flag !

                Am I right about it ?

                BR

                guy038

                1 Reply Last reply Reply Quote 2
                • PeterJonesP
                  PeterJones
                  last edited by

                  Yes, of course. Sorry.

                  1 Reply Last reply Reply Quote 0
                  • tho-gruT tho-gru referenced this topic on
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors