Scintilla with lexers

Mac OSX specific forum
User avatar
deseven
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Scintilla with lexers

Post by deseven »

As you may know, the static PB version of Scintilla doesn't support lexers.
On Windows you can just download the dll from the official site and you're good to go.
But on Linux and Mac it's linked statically and it looks like it still lacks lexers support.

Simple way to check it:

Code: Select all

InitScintilla()
OpenWindow(0,200,200,200,200,"lexers test",#PB_Window_SystemMenu)
ScintillaGadget(0,0,0,200,200,0)
oldLexer.i = ScintillaSendMessage(0,#SCI_GETLEXER)
ScintillaSendMessage(0,#SCI_SETLEXER,#SCLEX_HTML)
newLexer.i = ScintillaSendMessage(0,#SCI_GETLEXER)
If oldLexer <> newLexer
  Debug "lexers are supported"
Else
  Debug "lexers are not supported"
EndIf
Anyone can advice anything?
User avatar
deseven
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: Scintilla with lexers

Post by deseven »

Anyone?
Post Reply