Header and Footer
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Header and Footer
I have around 40 files, in which header and footer (constant string) is required. How to achieve this using regular expressions or macro?
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
Macro route, assuming you have no objection to repeating it 40 times.
Macros -> Record (Ctrl-Shift-R)
Ctrl-Home (resets cursor position to first line, first column)
{Insert your header material}
Ctrl+End (resets cursor position to end line, last column)
{Insert your footer material}
Macros -> Stop Record (Ctrl-Shift-R)
Save that macro out and any new documents or any existing documents can have that macro run against them. Might want to explicitly add in a carriage return (enter) before adding your header/footer.
WildEdit might have the ability to do this even easier with a regex that says "match entire document" and replace with "header"\1"footer"
Macros -> Record (Ctrl-Shift-R)
Ctrl-Home (resets cursor position to first line, first column)
{Insert your header material}
Ctrl+End (resets cursor position to end line, last column)
{Insert your footer material}
Macros -> Stop Record (Ctrl-Shift-R)
Save that macro out and any new documents or any existing documents can have that macro run against them. Might want to explicitly add in a carriage return (enter) before adding your header/footer.
WildEdit might have the ability to do this even easier with a regex that says "match entire document" and replace with "header"\1"footer"
I choose to fight with a sack of angry cats.
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact: