EDIT - Open a File for Editing

Syntax


EDIT

[ file-name | NEW  | * ]


[ .Profile-name ]


Operands


file-name | *

The name of the file to be edited.  


If you wish to edit a file whose actual name is NEW, the name must be enclosed in quotes as 'NEW'.


If a single * is entered, it requests the filename to be fetched from the current clipboard contents.


NEW

The new file tab will be opened with a new, empty file.


.Profile-name

This optional operand allows you to specify an overriding Profile to be used for the Edit session.  It simply consists of the name of the desired Profile, preceded by a . (period)


Description


The EDIT command loads a file into the edit work space for editing. If no file-name operand is specified, then a standard Windows file open dialog will be presented for you to select the file for editing.  


If you are currently editing a file in the Tab, the requested file (or NEW) will be opened in a new Tab.


Default Directory


When no operand at all or only a simple unqualified filename is provided for the EDIT command, the default directory used for searching for the file or for the file open dialog's starting directory will be determined as follows:




Overriding Profile


When you wish to use a different Profile from the one indicated by the file's extension, simply  provide the alternate profile name, preceded by a period, on the command line.     For example to Edit  MYSOURCE.BAS using the TXT profile the command would be


EDIT MYSOURCE.BAS .TXT


The use of the alternate profile is for the duration of this session only, it does not alter any permanent Profile processing.


Created with the Personal Edition of HelpNDoc: Produce Kindle eBooks easily