WinBatch Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: NoelC on February 10, 2019, 08:19:53 am

Title: Anyone Know a Good VSCode Colorizer for WinBatch
Post by: NoelC on February 10, 2019, 08:19:53 am
What's a good way to see WinBatch sources in VSCode with colorizing? 

Assigning it C language colorizing seems to get some of the way there, but semicolons trip it up.

Can we maybe use a C++ single line comment style in WinBatch?

There's probably a combo of tricks that gets one close.  I'm interested to hear what you've come up with.

-Noel
Title: Re: Anyone Know a Good VSCode Colorizer for WinBatch
Post by: td on February 10, 2019, 08:41:13 am
Why not just use WinBatch Studio?
Title: Re: Anyone Know a Good VSCode Colorizer for WinBatch
Post by: NoelC on February 10, 2019, 09:43:00 am
Personal preference, mostly.  You tend to get used to the way an editor works when you use it for many hours a day and you look for ways to integrate the other things you do into it.

-Noel
Title: Re: Anyone Know a Good VSCode Colorizer for WinBatch
Post by: JTaylor on February 10, 2019, 10:32:07 am
Assuming I understand the question...maybe this will help???

    https://css-tricks.com/creating-a-vs-code-theme/

Jim
Title: Re: Anyone Know a Good VSCode Colorizer for WinBatch
Post by: NoelC on February 14, 2019, 06:47:01 am
Not really; I have a decent theme (i.e., dark background, code elements colored in certain ways, etc.), but I was curious whether anyone had come up with something that understands the wbt syntax - e.g., so comments, keywords, etc. are colored the way the user's theme sets them.

-Noel
Title: Re: Anyone Know a Good VSCode Colorizer for WinBatch
Post by: td on February 14, 2019, 08:17:12 am
You could always role-your-own if it is important enough to you.  Not sure how much interest there is but maybe start a Github project to get contributions from others.
Title: Re: Anyone Know a Good VSCode Colorizer for WinBatch
Post by: JTaylor on February 14, 2019, 10:57:18 am
Okay.   I thought what I posted showed you, as part of the theme, how to set the colorization for the text.    Just figured if you started with the C++ theme you are using you could tweak it to do what you wanted.   Must have misunderstood.  Sorry.

Jim