Difference between revisions of "Command line parameters"
Line 20: | Line 20: | ||
====/c{{string|xx}} {{feature|Go to Char}}==== | ====/c{{string|xx}} {{feature|Go to Char}}==== | ||
+ | |||
+ | Automatically moves the caret to the character {{string|xx}} after the file is loaded. If there are not so many characters, the caret is moved to the end of the document. | ||
+ | |||
+ | This parameter excludes {{feature|/s}} and {{feature|/a}} parameters. | ||
+ | |||
+ | Use this parameter along with the {{feature|/l}} parameter to jump to a specific column on a specific line. If the chosen line is too short, the caret is placed respectively somewhere beyond it. In other words, when used in conjuction with {{feature|/l}} parameter, the {{feature|/c}} parameter behaves relatively to the line from the {{feature|/l}} parameter. | ||
+ | |||
+ | Note: The caret is moved only after all the {{defined|newline}} conversions are already done. If a Unix-type file is loaded and automatically identified, each {{defined|newline}} is converted into two characters (i.e. {{string|CR/LF}}). Any given {{feature|/c}} parameter should be specified likewise. | ||
+ | |||
+ | {{specific|[[RichEdit clone|RE clone]]}} There is a difference in counting {{defined|newlines}}. See section [[RichEdit clone]]. | ||
====/s{{string|xx}},{{string|yy}} {{feature|Set Selection}}==== | ====/s{{string|xx}},{{string|yy}} {{feature|Set Selection}}==== |
Revision as of 19:10, 17 May 2006
This section may contain incomplete, premature, or mistaken information, prone to change without notice.
Usage
TedNPad.exe [ /lxx | /cxx | /sxx,yy | /a ] [ /p ] [ /nl ] [ /ns ] [drive:][path]filename |
Note: All parameters must precede the filename and be delimited with at least one white-space
to work properly. There must be no white-space
between a parameter and its value, if any. Some of the parameters are exclusive and should not be used together, or the result may be undefined otherwise and may change from version to version.
/lxx Go to Line
After the file is loaded, automatically moves the caret to the beginning of the line xx. If there are not so many lines, the caret remains at the beginning of the document.
This parameter excludes /s and /a parameters.
/cxx Go to Char
Automatically moves the caret to the character xx after the file is loaded. If there are not so many characters, the caret is moved to the end of the document.
This parameter excludes /s and /a parameters.
Use this parameter along with the /l parameter to jump to a specific column on a specific line. If the chosen line is too short, the caret is placed respectively somewhere beyond it. In other words, when used in conjuction with /l parameter, the /c parameter behaves relatively to the line from the /l parameter.
Note: The caret is moved only after all the newline
conversions are already done. If a Unix-type file is loaded and automatically identified, each newline
is converted into two characters (i.e. CR/LF). Any given /c parameter should be specified likewise.
Template:Specific There is a difference in counting newlines
. See section RichEdit clone.