Page 1 of 1
SyntaxHighlighting.dll for Linux (?)
Posted: Mon Feb 26, 2024 7:20 pm
by AZJIO
I use SyntaxHighlighting.dll in my tools. Is it possible to build this library for Linux?
Re: SyntaxHighlighting.dll for Linux (?)
Posted: Tue Feb 27, 2024 9:21 am
by fryquez
The source is on
Github PureBasicIDE/tools/HighlightingDll.pb.
You should be able to compile it for Linux.
Re: SyntaxHighlighting.dll for Linux (?)
Posted: Tue Feb 27, 2024 10:29 am
by AZJIO
fryquez wrote: Tue Feb 27, 2024 9:21 am
The source is on
Github PureBasicIDE/tools/HighlightingDll.pb.
You should be able to compile it for Linux.
Here is the
topic where I tried to compile and it didn’t work
Re: SyntaxHighlighting.dll for Linux (?)
Posted: Tue Feb 27, 2024 11:36 am
by fryquez
That crash comes from the array initialization.
Add these lines to InitSyntaxCheckArrays() of HighlightingEngine.pb.
Code: Select all
Global Dim ValidCharacters.b(#MaxSizeHT)
Global Dim BasicKeywordsHT.l(#MaxSizeHT)
Global Dim BasicKeywords.s(#NbBasicKeywords)
Global Dim BasicKeywordsReal.s(#NbBasicKeywords)
Global Dim BasicKeywordsEndKeywords.s(#NbBasicKeywords)
Global Dim BasicKeywordsSpaces.s(#NbBasicKeywords)
Global Dim ASMKeywordsHT.l(#MaxSizeHT)
This topic should be moved to bugs.
Re: SyntaxHighlighting.dll for Linux (?)
Posted: Wed Feb 28, 2024 12:08 am
by AZJIO
If I insert Xincludefile, then nothing happens. If I open the Syntaxhighlighting.so file, I get a file opening failure.
Re: SyntaxHighlighting.dll for Linux (?)
Posted: Wed Feb 28, 2024 10:11 am
by fryquez
I did say you need to fix the InitSyntaxCheckArrays() to fix the Syntaxhighlighting.so crashing.
Why you coming up with Xincludefile?