GuiXT Script Editor
(Version 2009 1)

 

Sap Guixt scripteditor GuiXT script editor

Overview

The GuiXT script editor supports

  • ANSI and UTF-8 codepage

  • syntax-coloring

  • integrated help for GuiXT keywords

  • easy navigation to “include” files or “process=” files

  • pretty print (indents if/else/endif)

  • putting code blocks in comment

  • inserting  commands

  • self-defined code blocks

  • writing backup files

When you work with large scripts, it will considerably facilitate your work.

Sap Guixt scripteditor01 GuiXT script editor

Installation

Please download the editor setup program (guixt.editor.setup.exe) from our download page and execute it. It copies the program guixteditor.exe to the installation directory. It also defines the GuiXT script editor as standard editor in GuiXT profile. You can change the standard editor setting in GuiXT profile back to notepad.exe, or to another text editor of your choice at any time.

We suggest that you also download the html help file  (guixt_e.chm for English documentation) to the same directory in which you installed the script editor. The integrated F1 help for keywords links to this file.

For future updates, please note that the script editor program and the help file can be updated independently of one other.

When you click on the “Script” or “InputScript” button in GuiXT the new editor will now come up.Sap Guixt scripteditor02 GuiXT script editor

 

 

 

ANSI- and UTF-8 codepages

For SAP Unicode systems you need to save the scripts in UTF-8 format, otherwise special characters, e.g. Umlauts, will not be displayed correctly, and screen elements containing these characters are not recognized. The script editor support UTF-8 as of version 2009 1. With the “Save as…” dialog you can save an ANSI script in UTF-8 and vice versa. New scripts are always created using the least recently used format. The format (ANSI or UTF-8) is also displayed in the title line for each file in the editor.

 

 

Customizing:  Choose a font

With Options->Choose font you can select a font.  Sap Guixt scripteditor03 GuiXT script editorFor our examples here we have chosen

  Courier New,  Bold, Size=10

    

   

 

 

 

 

We suggest that you select a fixed-sized font, since some parts of your scripts are perhaps aligned using “space” characters. Example:

Sap Guixt scripteditor05 GuiXT script editor

 

 

 

Courier New

 

Sap Guixt scripteditor04 GuiXT script editor

 

 

 

Arial

 

Customizing: Choose colors (or keep the standard ones)

Sap Guixt scripteditor06 GuiXT script editorSap Guixt scripteditor08 GuiXT script editor

 

 

 

 

 

 

 

 

Customizing: Select/deselect backup feature

Sap Guixt scripteditor07 GuiXT script editor

 

 

 

 

When you save a fi
le in the script editor, e.g. the file “C:\GuiXT\Scripts\va02_textdisplay.txt”, the backup feature will automatically copy the existing file under a new name. In the construction of this name, date, time and the .bak extension to the file name are appended

“C:\GuiXT\Scripts\va02_textdisplay.txt.20050221.163105.bak”

A comparison feature for such files is planned for the future.

 

Insert a command

To insert a command, you can either click on the insert command button in the toolbar:Sap Guixt scripteditor09 GuiXT script editor

 

Or you use the right mouse button on an empty script line. The editor will then display a small menu containing all GuiXT commands in a 2-level menu:

Sap Guixt scripteditor10 GuiXT script editor

 

 

 

 

 

 

 

 

 

When you select a command, the editor inserts one or several lines containing the command in a typical format. In some cases, it will also add a comment containing remarks or additional options. Example:

Sap Guixt scripteditor11 GuiXT script editor

 

 

Creating you own code blocks for the  ic menu

You can define your own code blocks for the  ic menu, for example a standard script header or a correction remark. To do so,  create a folder “mytemplates” in the script editor installation folder, i.e. in the folder that contains the “guixteditor.exe” file.  For each code block that you want to define, create a  “.txt” file in the “mytemplates” folder. All these files will be displayed by the script editor in “my templates” within the ic menu.  Choose suitable file names, since the script editor uses the file names for the menu item labels.

 

Display GuiXT help for a keyword

To display help, you can either press F1 on a line, or you use the right mouse button menu:

Sap Guixt scripteditor15 GuiXT script editor

 

 

Display an “include” file or a “process=” file

Use the right mouse button menu on the line that contains the “include” or the “process=” option:

Sap Guixt scripteditor16 GuiXT script editor

 

 

Working with several files

When you work with several files, it is often helpful to use the “tile vertically” option in the “Window” menu:

Sap Guixt scripteditor12 GuiXT script editor

 

 

Further functions

Further functions include “pretty print”  Sap Guixt scripteditor13 GuiXT script editor and  “putting code in comment” Sap Guixt scripteditor14 GuiXT script editor . And of course the usual editor functions like Undo, Cut&Paste, Printing.

 

GuiXT script editor