Author Topic: Request for Rho Sigma  (Read 2606 times)

0 Members and 1 Guest are viewing this topic.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Request for Rho Sigma
« 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.
Shuwatch!

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
    • View Profile
Re: Request for Rho Sigma
« Reply #1 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?
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

FellippeHeitor

  • Guest
Re: Request for Rho Sigma
« Reply #2 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.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Request for Rho Sigma
« Reply #3 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

FellippeHeitor

  • Guest
Re: Request for Rho Sigma
« Reply #4 on: February 05, 2021, 06:23:02 pm »
Oh! That is news, Dav!