|
ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Formatting of text in procedures
Formatting of text in procedures

Overview
Procedures can display text at various points during a test. This text can be specified with some basic formatting options, which are described below.
Details
There are two actions available to procedures which allow you to write text to the display during a test. These actions are:
The text that is output to the screen can be subject to some very basic formatting by using the following codes:
| | • | Bold | Makes the following text bold. Use to turn off bold formatting. |
| | • | Italic | Makes the following text italic. Use to turn off italic formatting. |
| | • | Underline | Makes the following text underlined. Use to turn off underline formatting. |
| | • | Align Left | Aligns text to the left of its display area. This is the default alignment. |
| | • | Align Centre | Aligns text to the centre of its display area. This alignment is reset after a new paragraph code ( ). |
| | • | Align Right | Aligns text to the right of its display area. This alignment is reset after a new paragraph code ( ). |
| | • | Paragraph | Starts a new line. Note that this will reset any alignment previously specified. |
| | • | Foreground Colour | Changes the colour of the text. RR, GG and BB are the hexadecimal values of the Red, Green and Blue components of the colour that you want (for example, FF0000 will be red, and 00FFFF will be cyan). Use to revert to the default foreground colour. |
| | • | Background Colour | Changes the colour of the text's background. RR, GG and BB are the hexadecimal values of the Red, Green and Blue components of the colour that you want (for example, CCCCCC will be grey, and 8000FF will be purple). Use to revert to the default background colour. |
Examples
| | 1. | The following text will be displayed centre-aligned over two lines: | |
This issome text
Note that the second command code must appear after the command, which resets the alignment.
| | 2. | The following text will be displayed on a single line, with the word 'bold' in bold and the word 'italic' in italic: | |
This is some bold and italic text
| | 3. | The following text will be right-aligned, with the second line displayed italic and underlined. | |
This isformatted text
| | 4. | The following text will be displayed with the first three words in green and the rest in the default text colour. | |
This is green and this is not

© Copyright 2003-2026 Stoelting Co. All rights reserved
ANY-maze help topic T0572
|