Enclose Selection.. (Alt+Ctrl+E)
If there is nothing selected while using this tool, then the caret is placed between the two inserted strings.
|TED Notepad for Windows is a freeware text editor, ...|
|TED Notepad for Windows is a <b>freeware</b> text editor, ...|
Tip: This tool is most suitable for repeating phrases where only some part of those phrases varies and this variance occurs somewhere in the middle of them. Every time you need to use such phrase, either invoke this tool on empty selection and then type the varying part right in, or type the varying part first and then select it and enclose it. Remember: If there is nothing selected while using this tool, then the caret is placed between the two inserted strings.
Tip: If you need to enclose with XML or HTML tags, use the XML/HTML Tag tool instead.
Tip: If you need to enclose entire subsequent lines, it is better to select all of them at once and use Quote Lines 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.
See also XML/HTML Tag tool.
XML/HTML Tag.. (Ctrl+Shift+H)
Asks for a tag Name and for its Attributes. Then encloses the selection with a specified XML/HTML tag (including the attributes if given). The tag may be Empty which means that only the starting tag is generated with a slash at its end according to XML specification (e.g. <br />). In this case, if a selection is found, the tag is placed at the end of such selection.
If the selection does not contain newline, it is enclosed tightly. However, if the selection does contain newlines, it is enclosed with additional newlines after the starting and before the closing tag.
The selection always persists the operation, but it excludes the generated starting and closing tags, thus selecting the same text as before.
|There is no place like 127.0.0.1!|
|There is no place like <a href="http://127.0.0.1/">127.0.0.1</a>!|
|There is no place|
There is no place
Tip: If you need to enclose selection with more general phrases, use the Enclose Selection tool instead.
Tip: In Settings dialog, on the Tools page, there are options to keep or reset the Attributes and Empty fields every time the tool dialog is invoked. You can use them to support your habits or ease routines of your current tasks.
See also Enclose Selection tool.
Extract Words (Ctrl+Shift+E)
Searches the selection for
Note: Duplicate words are not removed. Use Unique Lines tool to remove them.
|There is no place|
|There is no place like 127 0 0 1|
See also Unique Lines tool.
Extended Replace.. (Alt+Ctrl+R)
Whole words option can be used to restrict the search to only those matches, which start and end at word boundaries. Note that a match itself might contain
RegExps option can be used to turn the Regular expressions engine on. When Regular expressions are enabled, Find what is parsed as a regular expression pattern and Replace with is parsed as a replace pattern. See chapters Regular expressions and Replace patterns for more details on supported regular expressions syntax and replace pattern syntax.
Note: Invalid or faulty regular expression patterns result in tool refusing to work until the pattern is corrected.
Mimic case option can be used to
Note: Newlines and Tab characters can be used in Find what and Replace with fields freely. Moreover, each newline from the Find what field matches any kind of newline in the document (Win/Unix/Mac). Each newline from the Replace with field is converted to the current newline type (as shown in the Status Bar for example) upon replacing.
Note: This tool is prefered to the standard Replace All mechanism from the Search and Replace in many cases. Its search is done in more feasible way and the replacing routine works much faster and uses less resources. Furthermore, the selection ensures, that the replacing is done only in the desired part of the text. And finally, one Undo step covers all replacements together, instead of grouping many small separate replacements. Although this may not be directly apparent, it is incomparably better to have one big Undo step instead of too many small Undo steps. On the other hand, if you expect only a handful of matches and replacements in a big big document, the old good looping Replace All routine might come more handy.
Note: Search patterns are limited to 64 KiB. Prior to version 6.3, search patterns were limited to 8 KiB.
Note: The tool posts
Total matches to the Status Bar.
Translate Characters.. (Alt+Ctrl+T)
Note that Find and Translate to represent lists of characters rather than entire phrases. By assigning the first character from Find to the first character from Translate to, the second character from Find to the second character from Translate to, etc., the tool creates a so called character translation map (similar to one used by Boy Scouts for substitution cipher encryption). With this translation map, individual characters of the selection are then substituted for other characters (as Boy Scouts are encrypting a secret message).
Optionally, Delete all other characters option can be used to delete all characters, which are not specified in the Find. Note: Even if Delete all other characters is turned on, the translation of characters still requires that every character from Find has a corresponding character in Translate to. If Translate to is shorter than Find, extra characters from Find are again translated to nothing, deleting them from the results as well.
- Character ranges allow to easily specify entire sets of characters, e.g. a-z or 0-9, without the need to enumerate all individual characters. It is important to remember, however, that each single range in Find must correspond to exactly one single range in Translate to. And corresponding ranges should be of the same length (for this purpose, even a single character is considered to be a range of one character).
- If a range in Translate to is longer than a corresponding range in Find, the overhang from Translate to is simply ignored. For example, translating a-c to 1-4 would be equivalent to translating abc to 123, the last member of the second range being ignored as overhang.
- If a range in Translate to is shorter than a corresponding range in Find, the last character from the Translate to range is repeated as many times as necessary to satisfy the orphaned characters from Find range. For example, translating a-c to 1-2 would be equivalent to translating abc to 122, the last member of the second range being repeated to fill up to the length of the fisrt range.
- If both Find and Translate to contain mix of ranges and simple characters, they are paired before the ranges are mapped to each other. For example, translating a-cde-f to 1-456 would be equivalent to translating a-c and d and e-f to 1-4 and 5 and 6, which would be equivalent to translating abcdef to 123566. This is because a-c is mapped to 1-4 ignoring the overhang; d is mapped to 5; and then e-f is mapped to 6 applying repeating of the last replacement character.
- Escapes provide an easy way to enter special characters, which are difficult to type:
- \n — newline (NL).
- \r — carriage return (CR).
- \t — horizontal tab character (TAB).
- \f — form feed character (FF).
- \a — bell character (BEL).
- \v — vertical tab (VT).
- \e — escape character (ESC).
- \0 — null character (NUL).
- \xhh — character given in hh hex notation.
- \uhhhh — character given in hhhh unicode notation (unicode version only).
- \cK — character given in control notation. The letter K can be any capital letter from A to Z, where A stands for \x00, B stands for \x01, C stands for \x03, etc.
- \\ — ordinary back-slash \ character.
- \- — ordinary dash - character.
- All other escapes are left as they appear and are considered to be two ordinary characters for user convenience. Using \? is therefore allowed and is equivalent to an escaped version \\?.
- Note: It is allowed to use escapes within ranges, i.e. it is allowed to Find range \cA-\cZ and Translate to range A-Z.
|TED Notepad for Windows|
|Ten meteors per parsec.|
|TED NOTEPAD FOR WINDOWS|
Shows the Compare Strings dialog, where two
Note: Current selection (within the document) can be loaded as one of the comparison strings. Use the Load Selection 1 or Load Selection 2 to load selected document text as the first or second comparison string.
Tip: In Settings dialog, on the Tools page, there is Save strings from the dialog setting, which enables saving both comparison strings into the configuration. However, be aware that this may eventually result in bigger configuration file, if you put loads of text into the dialog.
Note: Only the first 64 KiB are stored into the config to prevent long application initialization times. Prior to version 6.3, text stored into the config was limited to 8 KiB.
Shows the Statistics dialog with computed statistics about the document and the selection. Statistics include several types of counts of characters, words, lines, sentences and paragraphs; minimum, maximum and average line lengths; etc.
Note: Statistics are computed separately for the document and for the selection.
Tip: The Statistics dialog supports accelerators for easy access. Note: You may need to hold down the Alt key to make them appear.