>How get information about text file structure from highlighter like SynWrite editor?
Get Editor's AdapterHilite property, cast it to TATAdapterEControl, then use properties of that class to read all data about parsed contents-- tokens etc.
file atsynedit_adapter_econtrol.pas -
//tokens
procedure GetTokenWithIndex(AIndex: integer; out APntFrom, APntTo: TPoint; out
ATokenString, ATokenStyle: string);
procedure GetTokenAtPos(APos: TPoint; out APntFrom, APntTo: TPoint; out
ATokenString, ATokenStyle: string);
function GetTokenString(const token: TecSyntToken): string;
procedure GetTokenProps(const token: TecSyntToken; out APntFrom, APntTo: TPoint;
out ATokenString, ATokenStyle: string);