THtmlViewer component
function FindSourcePos(DisplayPos: integer): integer;
Given a character position in the display, FindSourcePos finds the equivalent position in the HTML source document.
Note that the display position is that value given by the SelStart property.