Special Replacement Operators - Special Script Prepend-Append Operators
In addition to the standard special replacement operators are the below two operators for script usage only. These switches can only be used in scripts! Furthermore, they can for use only if you create or edit a script manually with a text editor. The Search and Replace internal script editor defaults to another syntax when saving a script that used prepend or append.
The intended usage for these operators is for a script that performs a Prepend or Append operation that will work across language modules. The Search and Replace script editor normally uses language dependent strings in the [Search] section of a Prepend or Append step. Edit your script manually and use %%srprepend%% or %%srappend%% if you want it to work across languages.
Operator |
Function |
%%srprepend%% |
These are special operators that may only be used in script search/replace operations. They cause the program to use the special binary mode replace operations, Prepend or Append. Prepend and Append insert the replace string at the top or bottom of the file. These operators do nothing during a search. |
Raw script syntax Examples: These code sections would put the respective strings at the top and bottom of a file during a replace.
Default syntax - For English interface. If you use a language module the strings in the [Search] section will be in that language:
[Search /bi]
This search string will not be used
The replace block will be added at the top of the file.
[Replace]
Put this string at the top ...
[Search /bi]
This search string will not be used
The replace block will be appended to the file.
[Replace]
... and this would be appended to the end
Alternative form - This form works whether or not a language module is in place. You must edit the script manually to specify %%srprepend%% or %%srappend%%:
[Search /bi]
%%srprepend%%
[Replace]
Put this string at the top ...
[Search /bi]
%%srappend%%
[Replace]
... and this would be appended to the end