Difference between revisions of "Markup"
Jump to navigation
Jump to search
(→Markup) |
(→Markup) |
||
Line 32: | Line 32: | ||
[_+] = CURON | [_+] = CURON | ||
[_-] = CUROFF | [_-] = CUROFF | ||
[[file:Screenshot_2022-04-15_at_08.46.51.png|thumb]] | |||
The following example shows the definition for Double Height Yellow writing on a blue background. | The following example shows the definition for Double Height Yellow writing on a blue background. | ||
"[B][n][Y][D]Hello World" | "[B][n][Y][D]Hello World" | ||
Alpha-graphics can be defined in markup using a special markup syntax using double square brackets e.g. | Alpha-graphics can be defined in markup using a special markup syntax using double square brackets e.g. |
Revision as of 07:52, 15 April 2022
Markup
Markup can be used in the content and title data fields and is a quick and easy way to create viewdata frame content.
The markup definitions are shown below.
[R] = ALPHA_RED [G] = ALPHA_GREEN [Y] = ALPHA_YELLOW [B] = ALPHA_BLUE [M] = ALPHA_MAGENTA [C] = ALPHA_CYAN [W] = ALPHA_WHITE [F] = FLASH [S] = STEADY [N] = NORMAL_HEIGHT [-] = BLACK_BACKGROUND [n] = NEW_BACKGROUND [r] = MOSAIC_RED [g] = MOSAIC_GREEN [y] = MOSAIC_YELLOW [b] = MOSAIC_BLUE [m] = MOSAIC_MAGENTA [c] = MOSAIC_CYAN [w] = MOSAIC_WHITE [h.] = SEPARATOR_GRAPHIC_DOTS_HIGH) [m.] = SEPARATOR_GRAPHIC_DOTS_MID) [l.] = SEPARATOR_GRAPHIC_DOTS_LOW) [h-] = SEPARATOR_GRAPHIC_SOLID_HIGH) [m-] = SEPARATOR_GRAPHIC_SOLID_MID) [l-] = SEPARATOR_GRAPHIC_SOLID_LOW) [_+] = CURON [_-] = CUROFF
The following example shows the definition for Double Height Yellow writing on a blue background.
"[B][n][Y][D]Hello World"
Alpha-graphics can be defined in markup using a special markup syntax using double square brackets e.g.
[b[Welcome to Telstar]]
The character between the first and second bracket, i.e. the 'b' in the above exampple represents the colour to be used. Note that Alpha-graphics take up four row, therefore, sat least 4 linefeeds will be required to position the cursor to the next row.
e.g.
[b[Welcome to Telstar]]\n\n\n\r\n