ok, I could not make any sense of your code so, I did my own.
hope you will be some day awake at the same time so could check these.
surely, as you colorize all those control chars too, the size of file increases...
anyway, here is something.
currently only colors vars, comments and text.

{edit}
surely board screwed everything up...

[ 19. January 2003, 07:50: Message edited by: Lonkero ]
_________________________
!

download KiXnet