Text tools

From TED Notepad
Revision as of 18:15, 11 July 2006 by Jsimlo (talk | contribs)
You see work in progress here; this section already reflects future TED Notepad version 5.0.0.13.
This section may contain incomplete, premature, or mistaken information, prone to change without notice.

Enclose Selection (Alt+Ctrl+E)

Asks for two phrases and then encloses the selection with them. The first one (Before) is placed before the selection, the second one (After) is placed after the selection.

Note: This tool was modified since previous versions. Now it does not work with the clipboard any more.

Example:
TED Notepad for Windows is a freeware text editor, ...
Result, using Before: <b> and After: </b>:
TED Notepad for Windows is a <b>freeware</b> text editor, ...

Tip: If you have written an HTML document and you need to make several phrases to be bold, e.g. each occurrence of a specific word, then use Find... (hotkey Ctrl+F) to select first such word, hit Enclose Selection (hotkey Alt+Ctrl+E), enter phrases Before: <b> and After: </b> and hit [[Control:Button:Enclose:{{{2}}}|{{{2}}}]] button. The selected word will be enclosed with the bolding tags. Then, use Find Next (hotkey F3) to select all the other occurrences, one by one. Each time hit Last Tool (hotkey Ctrl+L), in order to use Enclose Selection on each of them.

Tip: Note that if you need to enclose entire subsequent lines, it is better to select all of them at once and use Indent/Quote Selection... tool (hotkey Alt+Ctrl+Q) and then Close Lines... tool (hotkey Alt+Ctrl+C) instead of selecting each one of them separately and performing the Enclose Selection again and again.

Compare... (Alt+Ctrl+M)

Shows the Compare dialog, where two strings can be inserted and compared, optionally ignoring case.

If the two compared strings are not equal, the difference is marked by a selection within the first string and a warning is given. Note: If the strings are equal only up to the length of the first one, the caret is placed to the end of the first one. Nothing is selected.

Note: If the selection is not empty, it is auto-inserted to the edit box of the first string. The same font is used within the Compare dialog, as is specified for the main window.

Statistics... (F9)

Shows the Statistics dialog with a lot of calculated info about the document and the selection. Description of some terms used in the Statistics dialog can be found in the section Appendix.

Note: The calculated Crc32 value is informative only. It may differ from UNICODE to Non-UNICODE versions and from LE to RE clones.