The Exe Button always refers to a selected text paragraph of an opened file, and implements with manipulation a certain action. Here there are 2 basic functions: 1. Execute other arbitrary programs 2. Execute small scripts In the following a list of the possible commands:
RUN WorkingDirectory programname [Parameter1] [Parameter2] [Parameter… Start of arbitrary programs (prefers using for compiler calls).
Example Java compiler call: FILEPATH/SOURCE javac - D… ALLINWD.java
Example Java program start: FILEPATH java PIEdit.java
Example Internet Explorer start (Windows): C:/Programs/Internet!SPACE!Explorer WORKDIR/IEXPLORE.EXE FILEPATH/manual rtf There the working-directory contains a blank this must indicated through !SPACE!.
- FILEPATH replaced by the path to the current file (in that the selected line was entered)
- WORKDIR in the rear part replaced by the working-directory specified at the beginning.
- !SPACE! replaced by a blank
- ALLINWD.suffix (all in Working directory) replaced by all file names in the working directory with the specified suffix
- It is to be made certain that one create and place the file where the compiler call stands in that directory where later the compiled files lay. The construct "ALLINWD.suffix" is needed, since under Unix "*.suffix" does not function. Under Windows e.g. "ALLINWD.java" and "* .java" equivalent.
Note: Blanks are not permitted both in the WorkingDirectory indication and in the file name (parameter). Since however with Java source files no blanks are permitted anyway, and one should generally avoid blanks in file and file names, has I it me reserves this case to intercept. In addition blanks may to occur in the dissolved path by the FILEPATH indication. I.e. if e.g. FILEPATH by "D:/own files", functions, this is replaced, although a blank between "own" and "files". Thus the restriction applies only in the command line (line selected). JAVA compiler error line announcement in the source code: The error expenditure of the Java compiler call syntax highlighted and analyzed, in which places of which program an error arose. If the appropriate source file (Java file) is loaded straight, the error lines with a red color are deposited directly in the source code. Thus finding the error lines is no more problem. If the Java compiler is again started after the changes, the red deposited lines are updated. Thererfore if no more error up, is also marked no more line.
ADDSH syntaxtype Word1 Word2… With this command a word can be added dynamically to the syntax highlighting. One can use this e.g. for a project, in which one wants to emphasize a special variable or function name. This attitude is cancelled only when closing the editor, or when pressing the button. Here one must however pay attention to the following:
- words may contain only a-zA-Z0-9, and must at least contain one letter (the word is later highlighed in the style it has)
- intended purpose: Emphasize class, variable & function names
- open files must updated by - Button
Sets the background color of the text BGCOLOR (DEFAULT|THIS|ALL|index) (red green blue|CHOOSER) Examples: "BGCOLOR 0 200 250 200", "BGCOLOR ALL CHOOSER", etc.
Sets the default foreground color FGCOLOR (red green blue|CHOOSER) Note: should be used only in the config.rtf file (see below)!!! Examples: "FGCOLOR 0 0 0"
Sets the color for the color toolbar buttons at the certain index (0-6) COLORBUTTON index (red green blue|CHOOSER) Examples: "COLORBUTTON 2 200 150 150", "COLORBUTTON 6 CHOOSER", etc.
Sets the clip marking color (background highlight) PARENTHESISMARKCOLOR (red green blue|CHOOSER) Examples: "PARENTHESISMARKCOLOR 230 230 230"
Setting and/or determining the position of the window and the size dimensions FRAMEBOUNDS (x y width height|SHOW) Application makes only sense in the config.rtf file (see below) Examples: "FRAMEBOUNDS 10 10 600 250", "FRAMEBOUNDS SHOW"
Sets the total appearance of the editor LOOKANDFEEL look&feel 3 possibilities: LOOKANDFEEL com.sun.java.swing.plaf.motif.MotifLookAndFeel LOOKANDFEEL com.sun.java.swing.plaf.windows.WindowsLookAndFeel LOOKANDFEEL javax.swing.plaf.metal.MetalLookAndFeel Remark: There are not all Look&Feels on all computers available.
Sets the visibility of toolbars TOOLBAR (BOTTOM|RIGHT) (HIDE|SHOW|TOGGLE) Examples: "TOOLBAR RIGHT HIDE", "TOOLBAR BOTTOM SHOW", "TOOLBAR RIGHT TOGGLE"
Set a Pattern. TEXTindex must be written in the style, on which the Pattern is to be set. TEXT is taken over as name for the Pattern PATTERN [TEXT0] [TEXT1] [TEXT2] [TEXT3] Example: "PATTERN Header0 Standard3"
Hereby the tab sequence can be changed. MOVETAB (qindex zindex)|(THIS (- 1|+1)) Examples: "MOVETAB 3 1" (shift of tab 3 to position 1) "MOVETAB THIS - 1" (shift of the current tab around a position to the left)
A conversion function to convert blanks at the beginning of a line into tabulators. CONVERTSPC2TAB (THIS|ALL|index) spacecount Example: "CONVERTSPC2TAB THIS 4" (in the current file every 4 beginning blanks of a line are converted into a tabulator.) Pay attention, because it does not give a reversal function (tabulators to blanks).
Syntax-Highlights the current file newly. SHALL
General for usage: All these commands can be used in the config.rtf file (configuration file for the editor, which is implemented while the loading of the editor), and must &-seperated. The parameters of the individual commands can be distributed over several lines. Here naturally CONVERTSPC2TAB makes only little sense. In order to regard the whole commands in an example, you can look at yourselves the config.rtf file, which is after unpacking the editor in the main-directory. In order to avoid possible errors with changing the config file, one should before examine whether the syntax is correct, in which one marks whole contents of the file, and then presses the Exe Button. Here if an error emerges, then in or several commands have a syntax error. Special actuators: EXECUTEONOPEN ...... ENDEXECUTE Contents are implemented, if file is opened. Thus it is possible to implement small scripts when opening a certain file. This is particularly practical in connection with the ADDSH or the BGCOLOR command (see above). Example: "EXECUTEONOPEN BGCOLOR THIS 230 230 255 ENDEXECUTE"
---> this line would set the background of the current file on the color blue. Pay attention, which only one type of release block per file is implemented, only first.