-1

Looking for a bit of help. After completing hundreds of pages, I came across an HTML error. Need simply to move the /h1> closing tag to reside before the p> tag Is it possible with notepad++ or other, to find these 6 lines and replace the /h1> tag from line 6 to the end of the second line? Appreciate the help, if it's possible, as it will save a lot of work replacing it individually on all my pages.

Code is; tab delimited.

Note: The title and paragraph are never the same.

Find:

 <h1 id="h-title">
              Estatus rogue
              <p>ext 098 float
                <br>
              </p>
            </h1>

Replace with:

<h1 id="h-title">
              Estatus rogue</h1>
              <p>ext 098 float
                <br>
              </p>

In advance all my appreciation for your help

J C
  • 43
  • 7
  • It sounds like you probably should be using a templating engine that makes this easy... – Sumner Evans Feb 16 '21 at 16:07
  • Are you saying that there are hundreds of files like this, and you need to edit them all in a similar way? Why not change the generator, and regenerate them? – Tom Lord Feb 16 '21 at 16:12
  • Don't know a lot about templating engines, but don't see how they would work. – J C Feb 17 '21 at 10:02
  • Sorry Tom Lord, I do not understand... Generator?!! Yes, do have loads of files all completely different, except the snippet of a title code that exists on all, but also never the same. I thought (redux) being the solution. – J C Feb 17 '21 at 10:03

1 Answers1

0

Try downloading/using Visual Studio Code Community and doing a find and replace in multiple files

Here's a link to someone else who has done this.

Dharman
  • 30,962
  • 25
  • 85
  • 135
aaron
  • 1
  • 2