Writing Macros in the Code Editor

Navigation:  Macros >

Writing Macros in the Code Editor

Previous pageReturn to chapter overviewNext page

The Code Editor occupies the top left part of the Q++ Macros Editor. As you type code, Q++ constantly parses it to identify keywords and literals. It then changes the font attributes and/or color accordingly. This is called syntax highlighting.

 

 

This highlighting scheme is as follows (otherwise noted, the font color is black) :

 

Keywords

Keywords are displayed in bold. This includes var, begin, end, if, endif, for, endfor, while, endwhile, break, continue.

Compiler directives

Compiler directives are displayed in bold purple, on a greay background.

Comments

Comments are diaplyaed in italics and in green.

Literals

Literals are coloured according to their data type. Booleans are in bold grey, integers in red, and strings in blue.

 

 

The next sections cover the use of the code editor features to write code more efficiently.


Topic 108231 updated on 16-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?writingmacrocode.htm