Sujet : Re: highlight.js & DCL
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 13. Oct 2024, 19:44:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <veh4e1$pplr$2@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
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