Conversion from HTML to txt?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Conversion from HTML to txt?
I am wondering whether Textpad allows to convert html files into simple txt files. If so, how? Satoshi
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
After viewing in Text per MudGuard, you can also run the provided macro named Strip Tags (file named HELIOS09.TPM in ...\TextPad 4\Samples\ folder.
This does a great job of removing all tags, reducing the HTML even mor to a "text" file.
If the macro is not listed from the Main Menu, Close all files, Add the macro by going to Configure, Preferences. Click on Macros. Highlight Strip Tags and add to the column on the right. Click Apply, and OK out. restart TextPad.
Note: It may not always be necessary, but I have made a habit of doing all Configure changes when all documents are closed, modifying configurations as necessary, closing and reopening TextPad. TestPad guidelines may not require this every time, but it is easier to do it that way, than to guess when I have to do like that.
This does a great job of removing all tags, reducing the HTML even mor to a "text" file.
If the macro is not listed from the Main Menu, Close all files, Add the macro by going to Configure, Preferences. Click on Macros. Highlight Strip Tags and add to the column on the right. Click Apply, and OK out. restart TextPad.
Note: It may not always be necessary, but I have made a habit of doing all Configure changes when all documents are closed, modifying configurations as necessary, closing and reopening TextPad. TestPad guidelines may not require this every time, but it is easier to do it that way, than to guess when I have to do like that.
Hope this was helpful.............good luck,
Bob
Bob
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Hello insitus.
Actually is not a tag, macro is working correctly.
You could make your own macro to
1. Go to beginning of document,
2. Call the StripTags macro,
3. Return to beginning of document,
4. Do an additional Search/Replace for the "non-tag" strings.
=============================================
Edited:(added ";" as caught per talleyrand on subsequent post)
Actually is not a tag, macro is working correctly.
You could make your own macro to
1. Go to beginning of document,
2. Call the StripTags macro,
3. Return to beginning of document,
4. Do an additional Search/Replace for the "non-tag" strings.
=============================================
Edited:(added ";" as caught per talleyrand on subsequent post)
Last edited by Bob Hansen on Sun Oct 12, 2003 3:48 am, edited 2 times in total.
Hope this was helpful.............good luck,
Bob
Bob
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact: