<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 15 Sept 2021 at 11:31, Bruce Steers <<a href="mailto:bsteers4@gmail.com">bsteers4@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">You need to study the gb.eval.highlight component.</div><div style="font-size:small"><a href="http://gambaswiki.org/wiki/comp/gb.eval.highlight" target="_blank">http://gambaswiki.org/wiki/comp/gb.eval.highlight</a></div><div style="font-size:small"><br></div><div style="font-size:small">You can see how it's used in gambas syntax highlighting by studying the TextEditorMode_Style classes in the gb.form.editor component<br></div><div style="font-size:small"><a href="https://gitlab.com/gambas/gambas/-/tree/master/comp/src/gb.form.editor/.src" target="_blank">https://gitlab.com/gambas/gambas/-/tree/master/comp/src/gb.form.editor/.src</a></div></div></blockquote><div><br></div><div><br></div><div style="font-size:small" class="gmail_default">Oops sorry not the Mode files the highlight files found here in gb.eval.highlight....</div><div style="font-size:small" class="gmail_default"><a href="https://gitlab.com/gambas/gambas/-/tree/master/comp/src/gb.eval.highlight/.src">https://gitlab.com/gambas/gambas/-/tree/master/comp/src/gb.eval.highlight/.src</a></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">The code you are looking for as you run through the line characters is something like this...<br></div><div style="font-size:small" class="gmail_default"><pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC108" class="gmail-line" lang="plaintext"><br>  If sChar = "{" Or If sChar = "}" Then</span> <code>TextHighlighter.Add(Highlight.Operator, 1)</code><span id="gmail-LC112" class="gmail-line" lang="plaintext">  </span>
</pre></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">Like i say though i didn't start from the ground up with what I did so i'm not sure how to properly initiate the highlighting routine<br></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">BruceS</div><div style="font-size:small" class="gmail_default"></div><br></div></div>