Deutsch   English   Français   Italiano  
<veh4e1$pplr$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk>
Newsgroups: comp.os.vms
Subject: Re: highlight.js & DCL
Date: Sun, 13 Oct 2024 14:44:20 -0400
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <veh4e1$pplr$2@dont-email.me>
References: <vef7oh$caat$1@dont-email.me> <vege6a$lpr8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 13 Oct 2024 20:44:18 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a15c40dd9459a1347e07ff65fce4264f";
	logging-data="845499"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18x7sgM5BNLlvnujkMPm0gFxsGDReNpC6M="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:HX5/cNkzsNCeTGCgYpg7tLLB/WU=
In-Reply-To: <vege6a$lpr8$1@dont-email.me>
Content-Language: en-US
Bytes: 2070

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