Difference between revisions of "Text tools"
Line 36: | Line 36: | ||
{{example_start}}Example: {{mycomment|(Taken from an e-mail received from a user :)}} | {{example_start}}Example: {{mycomment|(Taken from an e-mail received from a user :)}} | ||
− | {{example_body}}<nowiki>----- Original Message -----</nowiki> | + | {{example_body}}<nowiki>----- Original Message ----- |
− | {{example_select|<nowiki>Great notepad! | + | </nowiki>{{example_select|<nowiki>Great notepad! |
Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........ | Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........ | ||
Line 44: | Line 44: | ||
{{example_start}}Result, using {{field|Quote}}: {{string|<nowiki>>_</nowiki>}} and {{field|Only non-empty lines}} checked: | {{example_start}}Result, using {{field|Quote}}: {{string|<nowiki>>_</nowiki>}} and {{field|Only non-empty lines}} checked: | ||
− | {{example_body}}<nowiki>----- Original Message ----- | + | {{example_body}}<nowiki>----- Original Message ----- |
− | + | > Great notepad! | |
> Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........ | > Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........ |
Revision as of 12:05, 26 May 2006
This section may contain incomplete, premature, or mistaken information, prone to change without notice.
Indent Selection (Ctrl+Tab)
Indents each line
of the selection with a Tab character.
Note: The selection always persists in this tool.
Quote Mail (Ctrl+Q)
Indents (quotes) each line
of the selection with a >_ phrase exactly the same way as a standard mail client would do upon replying to a message.
Note: The selection always persists in this tool.
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.
TED Notepad for Windows is a freeware text editor, looking and behaving ... |
TED Notepad for Windows is a <b>freeware</b> text editor, looking and behaving ... |
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.
Indent/Quote Selection... (Alt+Ctrl+Q)
Asks for a Quote phrase to work with and then indents (quotes) the selection with the specified phrase at the beginning of each line
. Optionally, only non-empty lines
can be quoted.
----- Original Message ----- Great notepad! Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........ of course. But that's what people are looking for these days. |
----- Original Message ----- > Great notepad! > Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........ > of course. But that's what people are looking for these days. |
Tip: If you are writting a list (or a table) in an HTML document, you may write all the lines of such a list first without having to bother with all the HTML tags. Then select all the lines, hit this Indent/Quote Selection... tool (hotkey Alt+Ctrl+Q) and enter phrase like <LI> as the Quote phrase.
Close Lines... (Alt+Ctrl+C)
Asks for a Close with phrase to work with and closes each line
of the selection with the specified phrase. Optionally, only non-empty lines
can be closed.
Great notepad!<br> <br> Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........<br> of course. But that's what people are looking for these days.<br> |
Tip: As the example above shows, if you are writting an HTML document, you may write all the lines of such a document first without having to bother with all the HTML tags. Then select all the lines, hit this Close Lines... tool (hotkey Alt+Ctrl+C) and enter whatever phrase is needed after all the lines (e.g. a <bt> tag).
Tip: According to the tips and examples above, you may simply combine the Indent/Quote Selection... tool with Close Lines... tool in order to write paragraphs in an HTML document without having to bother with a single tag at first. Just write all the paragraphs, each one on a single line (use word wrapping (hotkey Ctrl+W) in order to see entire paragraphs wrapped into several lines). When done, select all the paragraphs and use both Indent/Quote Selection... and Close Lines... tools in order to add those <p> and </p> tags.
Unique Lines (Alt+Ctrl+X)
Searches the selection for equal lines
and removes all duplicates. Order of the uniqued lines remains unchanged and from each two equal lines, the second one is removed.
Note: Use another Shift+Alt+Ctrl+X hotkey in order to ignore case
when matching duplicates.
<samp>how much wood would a woodchuck chuck if a woodchuck could chuck wood</samp> |
how much wood would a woodchuck chuck if could |
Tip: If you need, for example, a complete word listing of a document, use the Extended Replace tool in order to replace all spaces, commas, dots, etc. by new lines. Then the result of this Unique Lines tool will give you the complete listing of all words.
Unique Lines... (Ctrl+Shift+X)
Works the same way as the Unique Lines tool does, but allows more options for the behavior of the tool:
- All lines - identical to behavior of the Unique Lines tool.
- Only unique lines - only lines that does not have duplicates are included in a result.
- Only duplicated lines - only lines that have at least one duplicate are included in a result.
wood a woodchuck chuck |
The Count duplicates option adds actual numbers of equal lines found. Each resulting line will contain a number of its duplicates, written in brackets before/after the line.
how much (1) wood (2) would (1) a woodchuck (2) chuck (2) if (1) could (1) |
Additionally, Ignore case may be specified to ignore case
when matching duplicates.
Unindent Selection (Ctrl+Shift+Tab)
Removes the first character on each line
of the selection, if the character is a white-space
.
Unquote Selection (Ctrl+Shift+Q)
Takes the very first character of the selection as a quoting character. Then removes the first character on each line
of the selection, if the character is the quoting character. Similar to Unindent Selection.
Compare... (Alt+Ctrl+M)
Shows Compare strings dialog, where two strings
can be inserted, and compared, optionally ignoring case
. Note: If the selection is not empty, it is always auto-inserted to the edit box of the first string. The same font is used here as the main window uses.
If the two compared strings are not equal, the difference is marked by the selection within the first of the strings. (i.e. The selection will cover the first string from the first different character to the end.)
Statistics... (F9)
Shows Statistics dialog with a lot of statistics about the document and the selection. Description of some terms used there can be found in the section Appendix.
Note: Counted Crc32 value is only informative, as it may differ from UNICODE to Non-UNICODE versions and from LE to RE clones.