Page 1 of 1

Beginner's Scintilla usage questions

Posted: Tue May 28, 2024 11:12 am
by micha-b
Hello people,

I'd appreciate some help in understanding how to use scintilla in PB 6.10 LTS. I'm used to use QScintilla at a beginner's level in Qt5/C++, but have no experience with Scintilla/PureBasic so far. If I understood it correctly, Scintilla is now linked in statically and so InitScintilla() is obsolete and should not be used any longer?

Could somebody please give me a brief overview according to my questions:
  • 1. How do I find out which lexers are supported by Scintilla/PB 6.10?
  • 2. How do I set a specific lexer?
  • 3. How do I set folding/unfolding?
  • 4. How do I find out the recent cursor position (line/column)?
  • 5. How do I switch between lexers (Let's say I want to be able to change syntax highlighting between HTML and CSS e.g.)?
  • 6. Are there prebuild lexers for highlighting PureBasic, FreeBasic, BlitzMax and Hollywood already?
Maybe someone can publish a small example, showing how to use a scintilla lexer?

Thanks for any help and hints!

Re: Beginner's Scintilla usage questions

Posted: Tue May 28, 2024 12:32 pm
by Fred

Re: Beginner's Scintilla usage questions

Posted: Tue May 28, 2024 4:07 pm
by micha-b
Fred wrote: Tue May 28, 2024 12:32 pm Check this: https://www.purebasic.fr/english/viewto ... 17#p616117
Thanks, Fred - that link gives me something to work on and think about. Still a bit confused, but steadily trying things out.
Is it really neccessary to open lexilla.dll in order to get the amount of available lexers or set a certain lexer?

Re: Beginner's Scintilla usage questions

Posted: Tue May 28, 2024 4:28 pm
by AZJIO

Re: Beginner's Scintilla usage questions

Posted: Tue May 28, 2024 4:50 pm
by micha-b
AZJIO wrote: Tue May 28, 2024 4:28 pm folding
Scintilla Documentation
Thanks, this helps a lot, AZJIO! :D

Re: Beginner's Scintilla usage questions

Posted: Tue May 28, 2024 5:02 pm
by AZJIO