Cannot load a lexer
Roger Tunnicliffe <[email protected]> Thu, 11 Dec 2025 19:17:53 -0800 (PST)
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_21982_2008331983.1765509473600
Content-Type: multipart/alternative;
boundary="----=_Part_21983_856864131.1765509473600"
------=_Part_21983_856864131.1765509473600
Content-Type: text/plain; charset="UTF-8"
I am using Linux, FreeBasic, GTK3, Scintilla and lexilla.
Scintilla and Lexilla are both statically linked.
The following code returns pLexer but SETILEXER always returns a 0.
I have spent so long on this. Can anyone help
Dim pLexer As Any Ptr = CreateLexer("freebasic")
Dim result As ULong = scintilla_send_message(sci, SCI_GETLEXER, 0, pLexer)
CONST SCI_SETILEXER As UInteger = 2187
result = scintilla_send_message(sci, SCI_SETILEXER, 0, pLexer)
--
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 email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/4b1d618a-0055-474e-9785-7b209564f61en%40googlegroups.com.
------=_Part_21983_856864131.1765509473600
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I am using Linux, FreeBasic, GTK3, Scintilla and lexilla.<div><br /></div><=
div>Scintilla and Lexilla are both statically linked.</div><div><br /></div=
><div>The following code returns pLexer but SETILEXER always returns a 0.=
=C2=A0</div><div>I have spent so long on this. Can anyone help=C2=A0</div><=
div><br /></div><div><div style=3D"color: rgb(204, 204, 204); background-co=
lor: rgb(31, 31, 31); font-family: "Droid Sans Mono", "monos=
pace", monospace; font-size: 13px; line-height: 18px; white-space: pre=
;"><div> <span style=3D"color: rgb(86, 156, 214);">Dim</span><span style=
=3D"color: rgb(156, 220, 254);"> pLexer </span><span style=3D"color: rgb(21=
2, 212, 212);">As</span> <span style=3D"color: rgb(78, 201, 176);">Any</spa=
n> <span style=3D"color: rgb(156, 220, 254);">Ptr</span> <span style=3D"col=
or: rgb(212, 212, 212);">=3D</span> <span style=3D"color: rgb(220, 220, 170=
);">CreateLexer</span>(<span style=3D"color: rgb(206, 145, 120);">"freebasi=
c"</span>)</div><div> <span style=3D"color: rgb(86, 156, 214);">Dim</span>=
<span style=3D"color: rgb(156, 220, 254);"> result </span><span style=3D"co=
lor: rgb(212, 212, 212);">As</span> <span style=3D"color: rgb(78, 201, 176)=
;">ULong</span> <span style=3D"color: rgb(212, 212, 212);">=3D</span> <span=
style=3D"color: rgb(220, 220, 170);">scintilla_send_message</span>(<span s=
tyle=3D"color: rgb(156, 220, 254);">sci</span>,<span style=3D"color: rgb(15=
6, 220, 254);"> SCI_GETLEXER</span>, <span style=3D"color: rgb(181, 206, 16=
8);">0</span>,<span style=3D"color: rgb(156, 220, 254);"> pLexer</span>)</d=
iv><div> <span style=3D"color: rgb(86, 156, 214);">CONST </span>SCI_SETILE=
XER <span style=3D"color: rgb(212, 212, 212);">As</span> <span style=3D"col=
or: rgb(78, 201, 176);">UInteger</span> <span style=3D"color: rgb(212, 212,=
212);">=3D</span> <span style=3D"color: rgb(181, 206, 168);">2187</span></=
div><div> <span style=3D"color: rgb(156, 220, 254);">result</span> <span s=
tyle=3D"color: rgb(212, 212, 212);">=3D</span> <span style=3D"color: rgb(22=
0, 220, 170);">scintilla_send_message</span>(<span style=3D"color: rgb(156,=
220, 254);">sci</span>,<span style=3D"color: rgb(156, 220, 254);"> SCI_SET=
ILEXER</span>, <span style=3D"color: rgb(181, 206, 168);">0</span>,<span st=
yle=3D"color: rgb(156, 220, 254);"> pLexer</span>)</div></div></div><div st=
yle=3D"color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-f=
amily: "Droid Sans Mono", "monospace", monospace; font-=
size: 13px; line-height: 18px; white-space: pre;"><br /></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;scintilla-interest" 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/4b1d618a-0055-474e-9785-7b209564f61en%40googlegroups.com=
?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/=
scintilla-interest/4b1d618a-0055-474e-9785-7b209564f61en%40googlegroups.com=
</a>.<br />
------=_Part_21983_856864131.1765509473600--
------=_Part_21982_2008331983.1765509473600--