Difference between revisions of "Close Lines"
m |
|||
Line 2: | Line 2: | ||
====Close.. (Alt+Ctrl+C)==== | ====Close.. (Alt+Ctrl+C)==== | ||
− | Asks for a {{field|Close}} phrase to work with and then closes each {{defined|line}} of the selection with the specified phrase, i.e. appends the specified phrase to each {{defined|line}}. | + | Asks for a {{field|Close Lines|Close}} phrase to work with and then closes each {{defined|line}} of the selection with the specified phrase, i.e. appends the specified phrase to each {{defined|line}}. |
− | Optionally, | + | Optionally, {{field|Close Lines|Close non-empty lines only}} can be used to close {{defined|non-empty lines}} only, which ensures that {{defined|empty lines}} are not modified at all. |
− | Optionally, the closing phrase may be inserted just before all tail {{defined|white-spaces}} on each line. This way, any current ''end-of-line'' {{defined|white-spaces}} are kept unmodified, and the closing phrase is prepended to those {{defined|white-spaces}}, after the last {{defined|graph}} (i.e. {{defined|non-white-space}}) character. | + | Optionally, using the {{field|Quote Lines|Skip tail spaces}}, the closing phrase may be inserted just before all tail {{defined|white-spaces}} on each line. This way, any current ''end-of-line'' {{defined|white-spaces}} are kept unmodified, and the closing phrase is prepended to those {{defined|white-spaces}}, after the last {{defined|graph}} (i.e. {{defined|non-white-space}}) character. |
− | Note: When closing of {{defined|empty lines}} is allowed, and tail {{defined|white-spaces}} are to be skipped, special consequential case occurs. On {{defined|empty lines}}, closing phrase is | + | Note: When closing of {{defined|empty lines}} is allowed, and tail {{defined|white-spaces}} are to be skipped, special consequential case occurs. On {{defined|empty lines}}, closing phrase is prepended, because tail {{defined|white-spaces}} is all that those line contain. |
− | Note: The selection always persists in this tool. | + | Note: The selection always persists in this tool. |
{{example_start}}Example: {{mycomment|(an e-mail received from a user)}} | {{example_start}}Example: {{mycomment|(an e-mail received from a user)}} | ||
Line 20: | Line 20: | ||
{{example_end}} | {{example_end}} | ||
− | {{example_start}}Result, using {{field|Close}}: {{string|<nowiki><br></nowiki>}} and {{field|Close non-empty lines only}} checked: | + | {{example_start}}Result, using {{field|Close Lines|Close}}: {{string|<nowiki><br></nowiki>}} and {{field|Close Lines|Close non-empty lines only}} checked: |
{{example_body}}<nowiki>----- Original Message ----- | {{example_body}}<nowiki>----- Original Message ----- | ||
− | Great notepad!<br> | + | </nowiki>{{example_select|<nowiki>Great notepad!<br> |
Tabs, you need tabs for multiple documents. Cosmetic, supeficial,<br> | Tabs, you need tabs for multiple documents. Cosmetic, supeficial,<br> | ||
− | of course. But that's what people are looking for these days.<br></nowiki> | + | of course. But that's what people are looking for these days.<br></nowiki>}} |
{{example_end}} | {{example_end}} | ||
− | {{tip}} Combine the {{feature|Quote | + | {{tip}} Combine the {{feature|Quote Lines}} tool with the {{feature|Close Lines}} tool in order to write paragraphs or lists in HTML documents without having to bother with {{string|<nowiki><p></nowiki>}} or {{string|<nowiki><li></nowiki>}} tags while writing. Write all paragraphs first, each one on a separate line (you may use {{feature|Word Wrap}} (hotkey {{hotkey|Ctrl+W}}) to see long lines automatically wrapped into several lines, since the {{feature|Word Wrap}} does not affect tools). When done, select all the lines and use both {{feature|Quote Lines}} and {{feature|Close Lines}} tools to add the {{string|<nowiki><p></nowiki>}} and {{string|<nowiki></p></nowiki>}} tags (or {{string|<nowiki><li></nowiki>}} and {{string|<nowiki></li></nowiki>}} tags) to each line. |
{{example_start}}Example: | {{example_start}}Example: | ||
Line 38: | Line 38: | ||
{{example_start}}Result, quoting with {{string|<nowiki><li></nowiki>}} and closing with {{string|<nowiki></li></nowiki>}}: | {{example_start}}Result, quoting with {{string|<nowiki><li></nowiki>}} and closing with {{string|<nowiki></li></nowiki>}}: | ||
− | {{example_body}}<nowiki><li>Great notepad!</li> | + | {{example_body}}{{example_select|<nowiki><li>Great notepad!</li> |
<li>Tabs, you need tabs for multiple documents. Cosmetic, supeficial,</li> | <li>Tabs, you need tabs for multiple documents. Cosmetic, supeficial,</li> | ||
− | <li>of course. But that's what people are looking for these days.</li></nowiki> | + | <li>of course. But that's what people are looking for these days.</li></nowiki>}} |
{{example_end}} | {{example_end}} |
Revision as of 21:37, 25 April 2011
This section may contain incomplete, premature, or mistaken information, prone to change without notice.
Close.. (Alt+Ctrl+C)
Asks for a Close phrase to work with and then closes each line
of the selection with the specified phrase, i.e. appends the specified phrase to each line
.
Optionally, Close non-empty lines only can be used to close non-empty lines
only, which ensures that empty lines
are not modified at all.
Optionally, using the Skip tail spaces, the closing phrase may be inserted just before all tail white-spaces
on each line. This way, any current end-of-line white-spaces
are kept unmodified, and the closing phrase is prepended to those white-spaces
, after the last graph
(i.e. non-white-space
) character.
Note: When closing of empty lines
is allowed, and tail white-spaces
are to be skipped, special consequential case occurs. On empty lines
, closing phrase is prepended, because tail white-spaces
is all that those line contain.
Note: The selection always persists in this tool.
----- 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!<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: Combine the Quote Lines tool with the Close Lines tool in order to write paragraphs or lists in HTML documents without having to bother with <p> or <li> tags while writing. Write all paragraphs first, each one on a separate line (you may use Word Wrap (hotkey Ctrl+W) to see long lines automatically wrapped into several lines, since the Word Wrap does not affect tools). When done, select all the lines and use both Quote Lines and Close Lines tools to add the <p> and </p> tags (or <li> and </li> tags) to each line.
Great notepad! Tabs, you need tabs for multiple documents. Cosmetic, supeficial, of course. But that's what people are looking for these days. |
<li>Great notepad!</li> <li>Tabs, you need tabs for multiple documents. Cosmetic, supeficial,</li> <li>of course. But that's what people are looking for these days.</li> |