Community
    • Login

    function Replace (ctrl + h)

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 1.4k 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ávid BrňákD
      Dávid Brňák
      last edited by

      Please tip,

      I have more than 1200 html files. I need to replace the text in them. But most likely function Replace has a limited number of characters.
      How do I solve the problem? Thank you!

      An example of the part I need to replace:

      		</div>
      <div class="searchControlContainer">
      	<input type="hidden" target='_new'
      	       name="p"
      	       value="par"/>
      	        <input type="hidden" target='_new'
                 name="r"
                 value="occ"/>
                  <input class="searchButton" type="submit" value=""/ target='_new'>
      </div>
      <div class="searchControlButtons">
          <span class="searchIcon menuButton" target='_new'><span class="icon"></span></span>
          <span class="closeIcon menuButton" target='_new'><span class="icon"></span></span>
      </div>
      	<div class="suggestions" target='_new'></div>
      
      		
      		<li id="menuPublications" class="chrome menuButton script-ROMAN dir-ltr" role="menuitem" aria-label="" lang="sk" data-lang="V" dir="ltr">
                  <a href=""><span class="icon"></span><span
                              class="label"></span></a>
              </li>
      
      						
      					                <li id="menuSynchronizeControls">
                      <ul>
                          <li id="menuSynchronize" class="chrome menuButton tbSync" role="menuitem"
                              aria-label="synchronizovať">
                              <a id="linkSynchronize" href="" rel="nofollow">
                                  <span class="icon"></span> <span class="label"></span> </a>
                          </li>
                          
                      </ul>
                  </li>
      		            <li id="menuSearchHitNext"
                  class="chrome menuButton iconOnly menuRight Vscript-ROMAN dir-ltr" lang="sk" data-lang="V" dir="ltr">
                  <a href="#"><span class="icon"></span></a></li>
          </ul>
      </div>
      
      
      
      	<div id="publicationNavigation"
       class="chrome lang-V script-ROMAN dir-ltr" lang="sk" data-lang="V" dir="ltr">
      <div class="secondaryNavToggle"><span class="icon"></span></div>
      
      <div class="pubNavTitle">
          <div class="chrome lang-V script-ROMAN" lang="sk" data-lang="V">
      	<ul>
      
      		
      	</ul>
          </div>
      </div>]
      
      Scott SumnerS 1 Reply Last reply Reply Quote 1
      • Scott SumnerS
        Scott Sumner @Dávid Brňák
        last edited by

        @Dávid-Brňák

        Find-what and Replace-with zones are limited to 2046 characters. Not much can be done to work around that.

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

          @Scott-Sumner

          …and an additional complication is that it is not easy to get text with line-endings in it (such as you might try to do with a copy-and-paste operation) into the Replace-with zone.

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