|
|
This is a collection of frequently asked questions about TextPipe Lite. Online DemonstrationsThe links below demonstrate how to perform common TextPipe Lite actions. If you have suggestions for other online demonstrations please contact us.
Problems viewing the demos? If you are running a firewall such as ZoneAlarm or privacy software that prevents popup windows, it may be inserting JavaScript code into the top of every page you view. The demonstration display software cannot cope with this alteration, so please disable this feature of your software in order to view them. Questions
Other help resources
AnswersWhy won't TextPipe Lite run from the command line?(Try using the Command line wizard in the Tools menu) There are a number of possible answers. Firstly, the evaluation edition of TextPipe Lite always displays a dialog when it runs that requires operator intervention. This dialog is not in the registered versions. Secondly, you may not have specified /G /Q at the end of the command line. This tells TextPipe Lite to run the current filter and exit when it has finished e.g.
Thirdly, you may have forgotten to correctly quote long filenames (e.g. those with spaces). You must use double quotes around the ENTIRE parameter. e.g.
See the notes in TextPipe Lite's help file under the command line topic. How can I search and replace within <form>...</form> tags?If you want to search and replace inside <form> elements, use a pattern search and replace (set the search type to Pattern), for
This finds all the text between <form> elements. Set the replacement text to
This essentially performs no replacement at all - because '$0' is shorthand for 'the found text'. We are just using the search and replace to identify a section of text for us. Next, add a new search and replace, and drag it INSIDE the original. You may have to drag the new filter to the right hand side of the tree view to force it to be dropped inside. This new search and replace acts only on the text found by the original search and replace, i.e. all the text inside the form elements. How can I search and replace everything after a particular character?If you want to search and replace everything after a particular character in a file, use a pattern search and replace (set the search type to Pattern), for
Where CHAR is the particular character or string that needs to be found. Set the replacement text to
This essentially performs no replacement at all - because '$0' is shorthand for 'the found text'. We are just using the search and replace to identify a section of text for us. Next, add a new search and replace, and drag it INSIDE the original. You may have to drag the new filter to the right hand side of the tree view to force it to be dropped inside. This new search and replace acts only on the text found by the original search and replace, i.e. all the text after the particular character. How can I search and replace everything before a particular character?If you want to search and replace everything before a particular character in a file, use a pattern search and replace (set the search type to Pattern), for
Where CHAR is the particular character or string that needs to be found. Set the replacement text to
This essentially performs no replacement at all - because '$0' is shorthand for 'the found text'. We are just using the search and replace to identify a section of text for us. Next, add a new search and replace, and drag it INSIDE the original. You may have to drag the new filter to the right hand side of the tree view to force it to be dropped inside. This new search and replace acts only on the text found by the original search and replace, i.e. all the text before the particular character. Dragging and dropping a file onto a short cut doesn't workUnfortunately with a short cut, the dragged filename is always appended to the existing command line (hence it comes after the /g /q when it must be before). The best way around this is to use a batch file like this: In T.bat:
Then add a short cut on the desktop for t.bat, and drag and drop files onto it. You might need to add double quotes around the %1 if you are using long filenames. Remove blank lines at the end of the fileUse a Perl pattern to search for:
And replace with nothing.
|