[Info-vax] highlight.js & DCL

Arne Vajhøj arne at vajhoej.dk
Sun Oct 13 14:44:20 EDT 2024


On 10/13/2024 8:24 AM, Craig A. Berry wrote:
> On 10/12/24 8:28 PM, Arne Vajhøj wrote:
>> On 1/18/2022 7:56 PM, Arne Vajhøj wrote:
>>> Long shot, but has anyone added DCL support to highlight.js?
>>>
>>> https://highlightjs.org/
>>>
>>> (it hash all kinds of programming languages, bash, cmd
>>> etc. but no DCL)
>>
>> I finally got to take a look at it.
>>
>> Not so difficult.
>>
>> First attempt attached below.
> 
> In case it's of interest to compare with what others have done, there is
> a VSCODE extension that already does this:
> 
> https://github.com/tomesparon/OpenVMS-DCL-VSCODE-Lang-Support
> 
> which is in turn based on:
> 
> https://github.com/gnikonorov/OpenVMS-DCL-Sublime-Lang-Support

I think those are way more advanced.

highlight.js is just for color coding of <code></code> blocks
in HTML.

And for what I posted it just ends up with:
    comments - green
    strings - red
    known words - blue
    everything else - black

Arne






More information about the Info-vax mailing list