Community
    • Login

    How to Share a Recorded Marco with others?

    Scheduled Pinned Locked Moved General Discussion
    macro
    7 Posts 6 Posters 22.3k Views 3 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Online
                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 Offline
                  PeterJones
                  last edited by

                  Yes, of course. Sorry.

                  1 Reply Last reply Reply Quote 0
                  • tho-gruT tho-gru referenced this topic on

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors