Difference between revisions of "Command line parameters"

From TED Notepad
Line 21: Line 21:
 
====/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.
+
After the file is loaded, automatically moves the caret to the character {{string|xx}}. 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.
 
This parameter excludes {{feature|/s}} and {{feature|/a}} parameters.

Revision as of 19:14, 17 May 2006

You see work in progress here; this section already reflects future TED Notepad version 4.5.2.
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

After the file is loaded, automatically moves the caret to the character xx. 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.

/sxx,yy Set Selection

After the file is loaded, automatically sets the selection from character number xx to character number yy. If there are not so many characters, the selection is shortened.

This parameter excludes /l, /c and /a parameters.

Template:Specific There is a difference in counting newlines. See section RichEdit clone.

/a Select All

/p Print

/nl NoLoad Settings

/ns NoSave Settings

/dxx Do Command