I don't have Notepad ++ or Textpad, so I canβt say for sure, but one of the following may work there:
Search
<!DOCTYPE[\s\S]*?<!-- start content --> or<!DOCTYPE.*?<!-- start content --> with the option "Match newline" or(?s)<!DOCTYPE.*?<!-- start content -->
and replace it with <?php require("header.php"); ?> <?php require("header.php"); ?> .
This will remove everything between the two phrases (including the phrases themselves). If you don't want this (I'm not sure about your question), then you probably want to keep what is in the first line after <!DOCTYPE , right? So:
Find (<!DOCTYPE[^\r\n]*)[\s\S]*?<!-- start content --> (or (?s)(<!DOCTYPE[^\r\n]*).*?<!-- start content --> etc.),
and replace with $1<?php require("header.php"); ?><!-- start content --> $1<?php require("header.php"); ?><!-- start content -->
source share