Crimson Editor &ndash Help Topics – Command Line Parameters

Crimson Editor supports command line parameters specifying files to be opened.

Crimson Editor allows multiple files to be specified in the command line. Each of the files specified will be opened when Crimson Editor starts up. The filenames on the command line should be separated with a space. i.e.

cedt.exe test.c test.h

will open two files ("test.c", "test.h").

For long filenames, they should be enclosed in quotes "". i.e.

cedt.exe "long file name.txt"

will open the file named "long file name.txt".

Crimson Editor supports wildcard characters to open files on the command line. Crimson Editor will accept any normal wildcard specification for files to be opened. i.e.

cedt.exe *.c

will open all files with the ".c" extension.

To specify the line number at which to position the cursor when the file is opened, the line number should be specified with '/L' switch. i.e.

cedt.exe /L:5 test.c

will open the file with the cursor positioned at line 5.

To prevent Crimson Editor loading the last opened documents you can use the switch /safe. This will cause Crimson Editor to instead open a blank document. i.e.

cedt.exe /safe

or

cedt.exe -safe

To find what version of Crimson Editor you have you can use the switch /version. This will cause Crimson Editor to output its version to the file cedt.ver in the same dir as the exe. It should be noted this will NOT work for pre-release/beta versions, they will put out their final version i.e.

cedt.exe /version

or

cedt.exe -version

Copyright © 1999-2006 by Ingyu Kang, Copyright © 2006-2007 by Emerald Editor Community. All rights reserved.