MACROS -KEY LINE INTERPRETER

1. Definition


The macro language is build above python and allows many functional possibilities.

1.1. USING THE MACROS


The macros are accessible through the 'KEY' line.
Insert the name of the macro and arguments , then hit 'RETURN'.

1.1.1. Some predefined macros, which may serve as example

**** HTML EXTRACT TABLE : some error here EXTRACT TABLE Objective, Example, Result ***

1.2. WRITING MACROS


Notes

1.2.1. PRINCIPLES OF THE MACRO LANGUAGE

Macros refer to a separate named file, and require elementary programming knowledge of python

1.2.2. Passing parameters

1.2.3. Instructions

1.2.4. Special statements

The special statements are in the following table :
NAME syntax note
IF IF condition THEN s1; s2...; sn ELSE sn+1; ... in one line only
one STATEMENT can be RETURN xxx
RETURN RETURN string
PARSE PARSE filename TO variable parses an xmind file into a SGH structure internally, and affects this parse to the variable
AT AT node name searches the current parsed workspace for a node whose title is
HYPERLINK --> HYPERLINK --> variable once a node is found, allows to get the hyperlink
TREE_STR --> TREE_STR --> variable once a node is found, converts the sub-tree into a string

1.2.5. Examples of code

**** HTML EXTRACT TABLE : some error here EXTRACT TABLE Code ***