A computer program product for use in conjunction with a computer system, the computer system including a user interface to display a document and issue commands to edit the document, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, the computer program mechanism comprising: a data structure representing the document as a