we could then have colour codes fx hh5459hj(just a gadget really the hotkey itself is much more omportant. ) to highligt the hotkey in a tooptip.
<skill - attack>
<hotkey="A'hh5459hj">
<skill - attack/>
You really don't know color codes, do you?
(Its a hexdecimal, so its 0-F, though it you can also use rgba(x,x,x,x))
Anyway, I don't think we need color codes. In fact, there's no tool tips, though that would be kinda cool (especially if we can customize the tooltip text in the XML). However, it'd be pretty obvious what the code is, just from mentioning the it in the tooltip. For example, the hotkey and tooltip could be defined in the xml like so:
<command>
<type value="attack"/>
<name value="explosive_shell"/>
<image path="images/attack.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<move-skill value="move_skill"/>
<attack-skill value="attack_skill"/>
<tooltip value="Launch an explosive shell at the target. Tooltip: A"/>
<hotkey value="a"/>
</command>