Beginner's Scintilla usage questions

Just starting out? Need help? Post your questions and find answers here.
User avatar
micha-b
User
User
Posts: 18
Joined: Wed Mar 29, 2023 8:51 am
Location: Heidelberg
Contact:

Beginner's Scintilla usage questions

Post 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!
Fred
Administrator
Administrator
Posts: 18274
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Beginner's Scintilla usage questions

Post by Fred »

User avatar
micha-b
User
User
Posts: 18
Joined: Wed Mar 29, 2023 8:51 am
Location: Heidelberg
Contact:

Re: Beginner's Scintilla usage questions

Post 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?
User avatar
micha-b
User
User
Posts: 18
Joined: Wed Mar 29, 2023 8:51 am
Location: Heidelberg
Contact:

Re: Beginner's Scintilla usage questions

Post by micha-b »

AZJIO wrote: Tue May 28, 2024 4:28 pm folding
Scintilla Documentation
Thanks, this helps a lot, AZJIO! :D
Post Reply