# '\*H' Control Screen Colours

> Source: https://manual.pvxplus.com/mnemonics/h

**Definition**

## Format

**'\*H'** =*colour_codes$*

***Where:***

|  |  |
| --- | --- |
| *colour_codes$* | String of 8 characters representing screen colours for program listings. |

The following ASCII colour codes are supported:

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
|  | **0** Black\* | **4** Blue | **8** Dark Gray | **\<** Dark Blue |
|  | **1** Red | **5** Magenta | **9** Dark Red | **=** Dark Magenta |
|  | **2** Green | **6** Cyan | **:** Dark Green | **>** Dark Cyan |
|  | **3** Yellow | **7** White | **;** Dark Yellow | **?** Dark Gray |

Each colour code position represents different elements:

|  |  |
| --- | --- |
| 1: | Background colour for highlighting **\*\[...\]** searches<br>\|  \|<br>\| --- \|<br>\| **0** to **7** for standard background colours \|<br>\| **8** to **?** for bright/foreground colours \|<br>\| **R** for Reverse Video \| |
| 2: | Colour for variables |
| 3: | Colour for literals |
| 4: | Colour for remarks |
| 5: | Colour for error lines |
| 6: | Colour for mnemonics |
| 7: | Colour for statement numbers or labels |
| 8: | Colour for operators (e.g. **+ - ( ) \* /** ) |
| For positions 2 to 8, the colour codes are **0** to **7** for standard foreground colours and **8** to **?** for dim/background colours. The command mode scanning feature uses Highlight=Yellow. |  |

## Description

Use **'\*H'** (*asterisk H*) to define colours in a displayed listing for the **LIST** directive and **LST( )** function. Default settings are shown in the example below.

## See Also

**[LIST List Program Statements](https://manual.pvxplus.com/directives/list)**  
**[LST( ) Return List Form of Statement](https://manual.pvxplus.com/functions/lst)  
['CS' Coloured Syntax](https://manual.pvxplus.com/parameters/cs)**

## Example

```
mnemonic '*H'=";4:>1=;9"
```
