Editor: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
(Revised into. Also started process of documenting REMOVE and NOWAIT parameters.)
 
Line 1: Line 1:
The '''Editor''' [[config]] specification can be used with the Config command or within a program line using the [[Execute]] statement.  
 
Many editors are supported for BR! [[Source code]].
 
The purpose of the EDITOR statement is to identify the program used by the [[EDIT]] command.  


  Editor "editor-program" [ REMOVE ] [NOWAIT]
  Editor "editor-program" [ REMOVE ] [NOWAIT]


Editors for BR! [[Source code]]  
While the '''Editor''' specification is normally placed within a BRCONFIG.SYS file, it can also be specified with the [[config|Config]] command or within a program line using the [[Execute]] statement to issue the Config command.


If you do not wish to allow for out of sequence [[Line numbers]], it is the responsibility of the Editor to do that checking, BR! only does that checking with version [[4.17]], and very early [[4.18]].


====Examples====
====Examples====
Line 21: Line 23:


<br>  
<br>  
REMOVE and NOWAIT affect the way the EDIT command uses the editor program. REMOVE causes BR to remove the source file when editing is complete.


====See also====
====See also====

Latest revision as of 16:04, 10 August 2018

Many editors are supported for BR! Source code.

The purpose of the EDITOR statement is to identify the program used by the EDIT command.

Editor "editor-program" [ REMOVE ] [NOWAIT]

While the Editor specification is normally placed within a BRCONFIG.SYS file, it can also be specified with the Config command or within a program line using the Execute statement to issue the Config command.


Examples

An Editor Statement could be typed in the command console like:

 Config Editor "C:\Program Files\NotePad++\NotePad++.exe"

Or added to BRConfig.sys like:

 Editor "C:\Program Files\NotePad++\NotePad++.exe"

Or perhaps added to BRConfig.sys, but only applicable to an individual user (Herbert) like:

@"Herbert" Editor "C:\Program Files\Mills Enterprise\MyEditBR\MyEditBR.exe"


REMOVE and NOWAIT affect the way the EDIT command uses the editor program. REMOVE causes BR to remove the source file when editing is complete.

See also


Known Third Party Editors

These editors can process .wbs/.brs Business Rules! Editable Source code.