Command Line

The editor supports command line parameters specifying files to be opened, it allows multiple files to be specified in the command line. Each of the files specified will be opened when the editord starts up. The filenames on the command line should be separated with a space.

Example

PTSource.exe test.c test.h will open two files (“test.c”, “test.h”).

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

PTSource.exe “long file name.txt” will open the file named “long file name.txt”.

The editor supports wildcard characters to open files on the command line, it will accept any normal wildcard specification for files to be opened. i.e.

Example

PTSource.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.

Example

PTSource.exe /L:5 test.c will open the file with the cursor positioned at line 5.

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

Example

PTSource.exe /safe or PTSource.exe -safe