QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: SpriggsySpriggs on February 05, 2021, 04:32:45 pm

Title: Request for Rho Sigma
Post by: SpriggsySpriggs on February 05, 2021, 04:32:45 pm
@RhoSigma

I know you were excellent at making the syntax highlighting modules for Notepad++ and was wondering if you would consider making up the custom JS for Discord that would highlight QB64 code. Right now we use either just basic or vb to get an approximate highlighting but it would sure be swell if we could get full QB64 highlighting. I tried myself to do it once but I don't know what I'm doing with that sort of thing.
Title: Re: Request for Rho Sigma
Post by: RhoSigma on February 05, 2021, 05:18:58 pm
... you were excellent at making the syntax highlighting modules for Notepad++ ...

Uhh, wish I could take the honor, but the highlighting modules are already coded by the N++ developers. No coding is needed for the N++ highlighter, it's more or less just creating the keyword lists, the operators list, the comment and string delimiters and set the desired colors and text styles. All this is nicely collected into an XML file which you provide to N++.

Doing the whole coding in JavaScript is a completly different task, and to be honest I haven't coded in JS since v1.1 of the language, which is how long, 20+ years ago. So all the new stuff of JS incl. DOM (which is certainly required to alterate the appearence/content of a webpage) is far beyond my scope of the language.

But what's about the codebox highlighter of this forum, coudn't it be adapted/used for Discord as well?
Title: Re: Request for Rho Sigma
Post by: FellippeHeitor on February 05, 2021, 05:44:36 pm
We use a plugin called GeSHi, I never looked into how the Discord highlighter works. I know GeSHi is written in javascript my bad, in php.
Title: Re: Request for Rho Sigma
Post by: Dav on February 05, 2021, 06:01:17 pm
We use a plugin called GeSHi, I never looked into how the Discord highlighter works. I know GeSHi is written in javascript my bad, in php.

Here's an interesting tidbit about GeSHi, related to QB.  It was started by a great QB coder, and all around cool guy, while he was an Admin at Qbasicnews.com, went by the name 'oracle'.

- Dav
Title: Re: Request for Rho Sigma
Post by: FellippeHeitor on February 05, 2021, 06:23:02 pm
Oh! That is news, Dav!