• Login
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.
  • A
    Anwesh Gangula
    last edited by Apr 6, 2018, 7:02 AM

    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?

    S 1 Reply Last reply Apr 6, 2018, 11:49 AM Reply Quote 1
    • S
      Scott Sumner @Anwesh Gangula
      last edited by Apr 6, 2018, 11:49 AM

      @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
      • C
        CrossBound.tech
        last edited by Jun 1, 2018, 4:27 PM

        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
        • J
          Janice Putman
          last edited by Jul 17, 2018, 7:48 PM

          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
          • P
            PeterJones
            last edited by PeterJones Jul 17, 2018, 8:12 PM Jul 17, 2018, 8:11 PM

            @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
            • G
              guy038
              last edited by Jul 17, 2018, 8:23 PM

              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
              • P
                PeterJones
                last edited by Jul 17, 2018, 8:24 PM

                Yes, of course. Sorry.

                1 Reply Last reply Reply Quote 0
                • T tho-gru referenced this topic on Sep 6, 2022, 11:34 AM
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors