Comment Markup Annotations
The PGN viewer supports some special markup that allows arrows, square highlighting and mini-board insertion to
be rendered on the board or move list.
To have a move show arrows on the board
when it is played, you can embed the following type of string into a comment on the move:
[%cal Gc2c3,Rc3d4]
the '[' and '] characters are the start and end of the arrow markup. The %cal indicates you are requesting a
coloured arrow to be drawn. This example will draw two arrows a Green arrow from the c2 to c3 squares, and a Red
arrow from the c3 to d4 squares. The colour letters supported are R=Red, G=Green, Y=Yellow and B=Blue.
To have a move highlight squares on the board
when it is played, you can embed the following type of string into a comment on the move:
[%csl Ra3,Ga4]
The %csl indicates you are requesting a coloured square. This example will highlight two squares, a3 will be
highlighted Red, and a4 will be highlighted Green. The colour letters supported are the same as used by the
arrow annotations.
Mini boards showing the current state of the game can be embedded into move comments. Anyhwere a '#' character is found by itself in a move comment, the '#' will be replaced with an image of the board, square highlighting and arrows can also be combined with mini-boards, for example the text:
[%cal Gc2c3] #
Would create a mini-board with a green arrow from c2 to c3 (the arrow will also show up on the main board when
the move the comment is attached to is played).