Re: Cannot load a lexer

Roger Tunnicliffe <[email protected]> Fri, 12 Dec 2025 13:08:51 -0800 (PST)
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
------=_Part_115938_1856769982.1765573731444
Content-Type: multipart/alternative; 
	boundary="----=_Part_115939_1190912153.1765573731444"

------=_Part_115939_1190912153.1765573731444
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thx for the reply Neil.

Correcting SCI_SETILEXER did not provide any Highlighting in Scintilla at=
=20
all.

I have been struggling with this for days and days and the snippet I posted=
=20
was just a cut down of all those efforts.
The doco page for Lexilla suggest that the posted code is all I need but I=
=20
keep reading that I have to provide keywords as well.
I have tried that but still get no highlighting. In fact there probably=20
isn't anything I haven't tried (except the right thing I suppose)

As an aside, I have spent days with all those dumb$#@ AI's who can only=20
explain why their idiotic code does not even compile (Mostly they tell you=
=20
that you are frustrated and that they lied)
God knows why there's been a trillion dollars spent on these things.

All that aside I wonder if you or anyone else here could guide me thru this=
=20
as I  just don't believe it should be that hard.

Thanking you in advance
Roger


On Friday, December 12, 2025 at 3:29:24=E2=80=AFPM UTC+11 Neil wrote:

> Roger Tunnicliffe:
>
> > The following code returns pLexer but SETILEXER always returns a 0.
>
> SCI_SETILEXER does not return anything. There aren't even any checks
> on that call, Scintilla just stores the value given.
>
> https://scintilla.org/ScintillaDoc.html#SCI_SETILEXER
>
> > Dim pLexer As Any Ptr =3D CreateLexer("freebasic")
>
> Good. Check for NULL.
>
> > Dim result As ULong =3D scintilla_send_message(sci, SCI_GETLEXER, 0,=20
> pLexer)
>
> SCI_GETLEXER doesn't take any arguments. At this point it will likely
> return something boring like 0.
>
> > CONST SCI_SETILEXER As UInteger =3D 2187
>
> From Scintilla.h:
> #define SCI_SETILEXER 4033
>
> 2187 is not associated with lexing:
> #define SCI_GETOVERTYPE 2187
>
> Neil
>

--=20
You received this message because you are subscribed to the Google Groups "=
scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-i=
nterest/08811208-45a7-44f6-9451-9918917c9e73n%40googlegroups.com.

------=_Part_115939_1190912153.1765573731444
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thx for the reply Neil.<div><br /></div><div>Correcting SCI_SETILEXER did n=
ot provide any Highlighting in Scintilla at all.</div><div><br /></div><div=
>I have been struggling with this for days and days and the snippet I poste=
d was just a cut down of all those efforts.</div><div>The doco page for Lex=
illa suggest that the posted code is all I need but I keep reading that I h=
ave to provide keywords as well.</div><div>I have tried that but still get =
no highlighting. In fact there probably isn't anything I haven't tried (exc=
ept the right thing I suppose)</div><div><br /></div><div>As an aside, I ha=
ve spent days with all those dumb$#@ AI's who can only explain why their id=
iotic code does not even compile (Mostly they tell you that you are frustra=
ted and that they lied)</div><div>God knows why there's been a trillion dol=
lars spent on these things.</div><div><br /></div><div>All that aside I won=
der if you or anyone else here could guide me thru this as I=C2=A0 just don=
't believe it should be that hard.</div><div><br /></div><div>Thanking you =
in advance</div><div>Roger</div><div><br /><br /></div><div class=3D"gmail_=
quote"><div dir=3D"auto" class=3D"gmail_attr">On Friday, December 12, 2025 =
at 3:29:24=E2=80=AFPM UTC+11 Neil wrote:<br/></div><blockquote class=3D"gma=
il_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204=
, 204); padding-left: 1ex;">Roger Tunnicliffe:
<br>
<br>&gt; The following code returns pLexer but SETILEXER always returns a 0=
.
<br>
<br>SCI_SETILEXER does not return anything. There aren&#39;t even any check=
s
<br>on that call, Scintilla just stores the value given.
<br>
<br><a href=3D"https://scintilla.org/ScintillaDoc.html#SCI_SETILEXER" targe=
t=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.co=
m/url?hl=3Den&amp;q=3Dhttps://scintilla.org/ScintillaDoc.html%23SCI_SETILEX=
ER&amp;source=3Dgmail&amp;ust=3D1765659561493000&amp;usg=3DAOvVaw1DWp2-h8Qf=
-rqJGCwVZBTx">https://scintilla.org/ScintillaDoc.html#SCI_SETILEXER</a>
<br>
<br>&gt; Dim pLexer As Any Ptr =3D CreateLexer(&quot;freebasic&quot;)
<br>
<br>Good. Check for NULL.
<br>
<br>&gt; Dim result As ULong =3D scintilla_send_message(sci, SCI_GETLEXER, =
0, pLexer)
<br>
<br>SCI_GETLEXER doesn&#39;t take any arguments. At this point it will like=
ly
<br>return something boring like 0.
<br>
<br>&gt; CONST SCI_SETILEXER As UInteger =3D 2187
<br>
<br>From Scintilla.h:
<br>#define SCI_SETILEXER 4033
<br>
<br>2187 is not associated with lexing:
<br>#define SCI_GETOVERTYPE 2187
<br>
<br>Neil
<br></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;scintilla-interest&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
scintilla-interest/08811208-45a7-44f6-9451-9918917c9e73n%40googlegroups.com=
?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/=
scintilla-interest/08811208-45a7-44f6-9451-9918917c9e73n%40googlegroups.com=
</a>.<br />

------=_Part_115939_1190912153.1765573731444--

------=_Part_115938_1856769982.1765573731444--