• Login
Community
  • Login

How to: Search & Replace in .html file , force newLine .

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 258 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.
  • V
    vmars vernon
    last edited by Mar 2, 2020, 4:05 PM

    Hello & Thanks ’
    I would like to search for “>” in .html file
    and replace it with “>” and “newLine” .
    So that np++ forces a newLine in np++ every time it encounter a “>”
    This will make it easier to find the stuff that I need to edit .
    Please , how to .

    Btw: Why does your Forum now force me to login via Facebook or Google . I don’t really want you folks to have all my info . Boo Hiss !

    Thanks

    1 Reply Last reply Reply Quote 0
    • W
      webketje
      last edited by webketje Mar 2, 2020, 4:15 PM Mar 2, 2020, 4:14 PM

      Hit Ctrl + H to open Search & Replace dialog.

      Find what: >
      Replace with: >\n

      Under Search Mode, check either Extended or Regular expression. (see screenshot below)
      Before hitting replace, move your cursor to the start of the document (the replace will only replace after your cursor).

      Replace with newlines example

      The characters with backslashes stand for: \t (tab), \n (newline), \r (carriage return), \0 (NUL character)

      Cheers

      1 Reply Last reply Reply Quote 3
      • V
        vmars vernon
        last edited by Mar 2, 2020, 7:48 PM

        Thank you very much !

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