<br><font size=2 face="sans-serif">Gabor;</font>
<br>
<br><font size=2 face="sans-serif">> You should stick to simple keyword highlighting in the beginning,<br>
> real syntax highlighting is a very complicated business, requiring<br>
> theoretical and practical familiarity with many concepts used in<br>
> compiler design.</font>
<br>
<br><font size=2 face="sans-serif">> But even only to find keywords, pos() or anything similar is a<br>
> completely impractical approach. What you have to do is to write a<br>
> lexical scanner to scan your input and to turn it into tokens. The<br>
> details also depend on the language you want to display but,<br>
> basically, it is as follows: you have a character variable to keep<br>
> the next character not yet consumed. You write a function to return<br>
> the next token in the input (an abstract value like identifier,<br>
> number, punctuation, etc). This NextToken function examines the<br>
> current-character and decides what to do:<br>
[snip]</font>
<br>
<br><font size=2 face="sans-serif">As usual, your assistance was not only very explicit but also extremely helpful. But this seems to be how you handle all your replies; you dispense a lot of good advice. I find myself in your debt. Again.</font>
<br>
<br><font size=2 face="sans-serif">And maybe, if I can get this whole thing working properly (the more I delve into it the more I realize needs to be done) I'll post it on the FPC site! :-)</font>
<br>
<br><font size=2 face="sans-serif">Thanks again.</font>
<br>
<br><font size=2 face="sans-serif">Jim</font>