Awk and Sed are ancient text processing tools.
It easily to find distributive of these programs for the Windows platform in the Internet, as well as many descriptions and guidelines for their use.
1. At the first stage you create file "strong.awk" in the catalog UserActions of TextLab directory and type the following awk script:
BEGIN { RS="\0" } { printf "<strong>" $0 "</strong>" }
2. At the second stage you are testing the script on the command line. To do this, you navigate to the directory where you installed TextLab and call awk with the-f UserAction\strong.awk option.
Then type the text and type the symbol of the end of the stream - CTRL+Z. Awk gives the results and exits.
3. If the result you meet, we only have to connect a new action to TextLab. Similarly, you can configure any "bracket" text transformation with any other tags (<b>...</b>, <i>...</i>), comments of C- language or XML (/* ... */, <!-...->). |
Configure the action that will delete all existing tags in selected text, turning it into a simple plain text. Let's use the sed utility and following file sed-script "no-tags.sed". :a s/<[^>]*>//g /</N //ba Check the script at the command prompt, and then connect the new operation to TextLab as shown in the image on the left. |
Similarly, you can create an actions using scripting languages PHP and Perl, technology XSLT.