Author Topic: BCX Syntax Highlighting in Visual Studio Code  (Read 1231 times)

Robert

  • Hero Member
  • *****
  • Posts: 1163
    • View Profile
BCX Syntax Highlighting in Visual Studio Code
« on: December 07, 2020, 12:55:24 AM »
See attached image.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1966
    • View Profile
Re: BCX Syntax Highlighting in Visual Studio Code
« Reply #1 on: December 07, 2020, 04:56:07 PM »
I tried VSC about a year ago but missed some BCX specific things that Mike Henning's  (Scintilla-based) editor got me hooked on. Coincidently, just last month, I finally cracked the nut that allowed me to create a dark mode in my hacked version of Mike Henning's editor. 

I prefer fewer colors than VSC.

« Last Edit: December 10, 2020, 05:47:34 PM by MrBcx »

airr

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: BCX Syntax Highlighting in Visual Studio Code
« Reply #2 on: May 05, 2024, 03:29:27 PM »
Yeah, I know this post is old.  ;D

Spent a couple of hours today rolling my own VSCode syntax highlighter for BCX.

Attached file shows where I'm at, using the 'Blackboard' theme.  Just need to color variables at this point.

AIR.

airr

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: BCX Syntax Highlighting in Visual Studio Code
« Reply #3 on: May 08, 2024, 10:19:53 PM »
Are the colors in the attached screenshot a little hard to see or are the colors okay?
« Last Edit: May 08, 2024, 10:24:41 PM by airr »

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1966
    • View Profile
Re: BCX Syntax Highlighting in Visual Studio Code
« Reply #4 on: May 09, 2024, 08:36:41 AM »
Looks OK to me.

airr

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: BCX Syntax Highlighting in Visual Studio Code
« Reply #5 on: May 09, 2024, 10:21:00 AM »
Thanks, MrB!

This has been a fascinating journey into the world of Regex; once I understood their approach it all made sense, but on first starting this I nearly went blind looking at other language implementations...

I'll make something available in the next few days for those interested....

AIR.

Robert

  • Hero Member
  • *****
  • Posts: 1163
    • View Profile
Re: BCX Syntax Highlighting in Visual Studio Code
« Reply #6 on: May 09, 2024, 02:07:04 PM »
Understanding WCAG 2 Contrast and Color Requirements

https://webaim.org/articles/contrast/

Contrast Checker Gadget here:

https://webaim.org/resources/contrastchecker/



airr

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: BCX Syntax Highlighting in Visual Studio Code
« Reply #7 on: May 12, 2024, 09:53:34 AM »
Thanks, Robert.

Using the Contrast Checker app, and averaging all the values, the average/overall Constant Ratio for the Syntax/Theme combo is 8.74:1

AIR.

airr

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: BCX Syntax Highlighting in Visual Studio Code
« Reply #8 on: May 12, 2024, 03:50:47 PM »
Okay, attached is what I have, both theme and syntax-wise.

The BCX-VSCode.zip contains the *.vsix files used to install the extensions (theme/syntax)

The BCX-VScode-Source.zip are the sources.

Consider these a work in progress.  I'll set up a git repository soon....

AIR.