Re: [abnf-discuss] ABNF syntax highlighting in rfc2629.xslt

Julian Reschke <julian.reschke@gmx.de> Wed, 16 May 2018 16:41 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 777A112D941 for <abnf-discuss@ietfa.amsl.com>; Wed, 16 May 2018 09:41:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wAv2rJj4BSEd for <abnf-discuss@ietfa.amsl.com>; Wed, 16 May 2018 09:41:28 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5D7C7126BF0 for <abnf-discuss@ietf.org>; Wed, 16 May 2018 09:41:28 -0700 (PDT)
Received: from [192.168.178.20] ([93.217.119.77]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MV5hN-1el6Q30sF3-00YTMW; Wed, 16 May 2018 18:41:22 +0200
To: Paul Kyzivat <paul.kyzivat@comcast.net>, abnf-discuss@ietf.org
References: <a290baa2-9a8a-9ede-b498-e3bc86411d9d@gmx.de> <f0cf6d23-fcb3-5f80-e497-f28f16b2455d@comcast.net>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <18941b1e-9f1f-d0fb-d842-d4b5cfc29ddb@gmx.de>
Date: Wed, 16 May 2018 18:41:19 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <f0cf6d23-fcb3-5f80-e497-f28f16b2455d@comcast.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K1:caMKntMbFzmv287+nrRQV53qhj6JCYRI4/BYBUX87yc65ugjtam EJ/fF3h1oGp2AWZjEvpUqAxurOOl/bfDJsT98x8Uwq7sf/idAoPnTRO8R9knLPEueq48mXD hCfQFBvTpayk3gmbdYC8fn2EjZbo5Izkb78QollJ1FR5tZhre/xldp5tYnnBhxw4A5kKoXI QEflD9qJMm5oP03Herl+A==
X-UI-Out-Filterresults: notjunk:1;V01:K0:lA3Kv2NzvqY=:q6czjJ6u3hfHj+DgFRMda8 qPtU4zGeUlu0zDvBA33J9ZGo2oPSaxteHXS9bMUyRUm/sEYcSwhLO4yOZ/ZHowfK35Z0g+42u Fx2hQyk0Acc0LyT5R5Wsj6Dbl/0hw+Aqqntkbrs14aaWbqc4YZyzR4CzRVuxxuFEVLGspP6xz +ON8fgT66K7FPwcP0q+oc0n5N/kOeuDdcyW4Lr/UomYDsqI1Hlf+/5zKrZTnIn7L8ZhiGwt+2 CJr+QTMkVqElUAGqbG9UyNDJEE6rKTPvOsaGk0+X8reYTHqUts9qnww9rAIqSe77SsnjhI2yP 7FY9nIqpOy8WVa+ZwxESwBZ5/uv1n1GmldVxDO5R0x8XKzJ0AtFrlU+OLF327VX4BHJxAnejH xunVc/3T/enTA9/5buZI75hD9UM1MEGRFb9GF+vNfvhb8yitaSRZUjoUJ3wouozWpljRUMRUb QDh1jHuIHj0fYiU+dfzUT/qxK20O+mBZ3jXWBpLg/oF8H54OsziHxKx2Z8iC4iCohfWsXnOBS lD2zSNmEYN3KBvbbNuLhrmXodvTSZpU8bAPXz+f0I0adL7FpJR22eEMUMtFPTdkugW7NBlKzz qEm8JGST2tHTko4TbDAwdbLa9KvPtURJjomSynAWYfcF0hzFZsGaihICbmxH0nlwIROMqa150 ncKBwN7S2FtOyUbmIij+8Nz8M+jZQJDtbxjwHL/vQMgBgKQ6Z0mWBSd/FjJj17jlurBA6PfJK 72sfrpLsp5a70Gptb4qPobORxNEYsIXOd088EFOJYTJqzIx23KNQpOuwnWmRES6el/gtzTDWV iKXZufN
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/O_htvcMEqvBoTvTzQDZr8MJgQwo>
Subject: Re: [abnf-discuss] ABNF syntax highlighting in rfc2629.xslt
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 May 2018 16:41:31 -0000

On 2018-05-16 17:37, Paul Kyzivat wrote:
> On 5/16/18 9:13 AM, Julian Reschke wrote:
>> FYI: I recently added support for ABNF syntax highlighting to my 
>> xml2rfc formatter.
>>
>> Example output:
>>
>>    <https://greenbytes.de/tech/webdav/rfc5234.html#rfc.section.4>
>>
>> This uses Google's "prettify", with an extension for IETF ABNF 
>> (<https://github.com/google/code-prettify/pull/542>).
>>
>> Feedback appreciated.
> 
> Maybe its just my eyes. I can barely discern the color differences. If I 
> really strain I can see that the comments are "red" and the quoted 
> strings are perhaps "green". But the differences are subtle - not 
> sufficient to help in reading the abnf.
> 
> Could you choose colors that have more contrast?

That's Google's default scheme. AFAIU, the colors are chosen to have 
maximum contrast, that's why they are all relatively dark.

Best regards, Julian