SyntaxHighlighting.dll for Linux (?)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
AZJIO
Addict
Addict
Posts: 1354
Joined: Sun May 14, 2017 1:48 am

SyntaxHighlighting.dll for Linux (?)

Post by AZJIO »

I use SyntaxHighlighting.dll in my tools. Is it possible to build this library for Linux?
fryquez
Enthusiast
Enthusiast
Posts: 367
Joined: Mon Dec 21, 2015 8:12 pm

Re: SyntaxHighlighting.dll for Linux (?)

Post by fryquez »

The source is on Github PureBasicIDE/tools/HighlightingDll.pb.
You should be able to compile it for Linux.
AZJIO
Addict
Addict
Posts: 1354
Joined: Sun May 14, 2017 1:48 am

Re: SyntaxHighlighting.dll for Linux (?)

Post 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
fryquez
Enthusiast
Enthusiast
Posts: 367
Joined: Mon Dec 21, 2015 8:12 pm

Re: SyntaxHighlighting.dll for Linux (?)

Post 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.
AZJIO
Addict
Addict
Posts: 1354
Joined: Sun May 14, 2017 1:48 am

Re: SyntaxHighlighting.dll for Linux (?)

Post by AZJIO »

If I insert Xincludefile, then nothing happens. If I open the Syntaxhighlighting.so file, I get a file opening failure.
fryquez
Enthusiast
Enthusiast
Posts: 367
Joined: Mon Dec 21, 2015 8:12 pm

Re: SyntaxHighlighting.dll for Linux (?)

Post by fryquez »

I did say you need to fix the InitSyntaxCheckArrays() to fix the Syntaxhighlighting.so crashing.
Why you coming up with Xincludefile?
Post Reply