TextPipe: Online Help
    Add file header
 

Submit feedback on this topic 

 Home  User Assistance   Tutorials   How to Use TextPipe
 Menus: File   Edit   Filters[ Wizards  Convert   Unicode   Add   Remove   Replace   Extract   Special   Maps   Restrict ]  Tools   Window   Help   Advanced
Home
Up

 

 

Note: Although otherwise identical to the Add Header filter, this filter does NOT generate any output at the start of a Restriction.

Adds the contents of the file or the specified text to the start of each file. Useful for adding advertising banners to web pages or other forms of file header. This filter is usually positioned at the top of the filter list ie just after <input>. Sub filters can be used to pre-process the file or text being added.

Note: If you wish to add a header to each page of a file that contains many pages, the best method of doing so is to use an 'Add Header Text' filter in conjunction with a search and replace for page end characters. Search for a form feed character (\f or \012), and when you find it, replace with a \f followed by your page header text.

You can use this filter to add a Unicode Byte Order Mark (BOM) to your file:

Byte sequence Description
\x00\x00\xFE\xFF UTF-32, big-endian
\xFF\xFE\x00\x00 UTF-32, little-endian
\xFE\xFF UTF-16, big-endian
\xFF\xFE UTF-16, little-endian
\xEF\xBB\xBF UTF-8 - optional, as UTF-8 only has one byte order. Mainly used as a Unicode signature.

The right-click (or context) menu on this field supports Undo, Cut, Copy, Paste, Delete, Clear Entire Field, Select All and Select All And Copy, entering special characters and inserting macros and global variables. Special characters and macros are ONLY supported when they are entered in the text field - they will not be interpreted or parsed when a file's contents are included.

See also

Add text to left margin
Add text to right margin
Add header  Add file header
Add footer  Add file footer
Add column of text

 Contact Us   Support   Community   Tutorials and User Guides (online)
 Copyright © 1999-2006 DataMystic. All rights reserved.