File names as parameters
RJ TextEd allows multiple files to be specified in the command line. Each of the files will be
opened in its own tab when the editor starts up.
The file names on the command line should be separated with a space.
E.g.
TextEd.exe test1.pas test2.pas
This will open two files ("test1.pas", "test2.pas").
Long filenames should be enclosed in quotes "".
E.g.
TextEd.exe "long file name.txt"
This will open the file named "long file name.txt".
Use wildcards to open files (*)
To open several files you can use the * wildcard.
E.g.
TextEd.exe F:\Source\*.cpp
this will open all files in the \Source folder with the file extension .cpp.
Specify text cursor position /L
To specify the line number to position the cursor when the file is opened, the line number should
be specified with '/L' switch.
E.g.
TextEd.exe /L:8 About.pas
This will open the file with the text cursor at line 8.
Open file as read only /R
Open a file as read-only by using the switch '/R'.
E.g.
TextEd.exe /R About.pas
Open files using a specified code page /CP=<code page>
Open a file using a specified encoding or code page with the '/CP=' parameter.
E.g.
TextEd.exe /CP=65001 About.pas
will open the file as UTF-8 encoded (no signature).
E.g.
TextEd.exe /CP=1252 About.pas
will open the file as ANSI encoded using the Cyrillic character set.
Reload an open file /RL
Use this option to load a file and reload it, if it is already opened.
Close an open file /C
Add the parameter /C if you want to close the given file(s) from the command line.
Open the file(s) in the hex editor /HEX
Add the parameter /HEX if you want to open given file(s) in the hex editor.
Open the editor using a different settings file /SETTINGS "<path\TextEd.ini"
Use this to open the editor using a different setting. E.g.
TextEd.exe /settings "F:\MyData\TextEd.ini"
will open the editor using the settings in F:\MyData folder.
NOTE!!! The settings parameter has to be the first parameter on the command line for this
to work.