Community
    • Login

    Clarification

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 220 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.
    • dr ramaanandD
      dr ramaanand
      last edited by dr ramaanand

      1. Is it possible to copy some text from one file of a particular folder to a file in another folder? What if both files are in the same folder?
      2. Is it possible to replace the heading on top of a file/webpage with what is in the footer for multiple files of a folder?
      Terry RT 1 Reply Last reply Reply Quote 0
      • Terry RT
        Terry R @dr ramaanand
        last edited by

        @dr-ramaanand said in Clarification:

        Is it possible to copy some text from one file of a particular folder to a file in another folder? What if both files are in the same folder?
        Is it possible to replace the heading on top of a file/webpage with what is in the footer for multiple files of a folder?

        #2 is quite easy, especially with a regular expression. You would use the “Find in Files” function. By selecting the different portions (3 groups with #1 the header, #2 the middle and #3 the footer,) in each file and then swapping/replacing portions (write back #3, then #2 and lastly #3 again if that’s what you want) you would have the result you want.

        #1 would require a lot more work and would likely be performed using some program code, such as PythonScript. That is because you are working with 2 files at a time and regular expressions only work with 1 file at a time. However since you haven’t given much detail I could ask, why wouldn’t you just do that manually? Open both files side by side. Copy and paste between them.

        Terry

        dr ramaanandD 1 Reply Last reply Reply Quote 1
        • dr ramaanandD
          dr ramaanand @Terry R
          last edited by

          @Terry-R said in Clarification:

          Open both files side by side. Copy and paste between them.

          Thanks a lot @Terry-R
          I will follow both your suggestions

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