lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pygments: `\foo` not always rendered as bold


From: David Kastrup
Subject: Re: pygments: `\foo` not always rendered as bold
Date: Tue, 20 Sep 2022 16:59:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Werner LEMBERG <wl@gnu.org> writes:

>>> I've noticed in the NR that stuff like `\foo` isn't always coloured
>>> as expected (i.e., `\foo` isn't always bold). Attached are two
>>> examples from the NR.
>>> 
>>> I wonder whether it makes sense to always embolden stuff starting
>>> with `\` (except in a string). This might even include `\1` and
>>> friends.
>> 
>> From these examples at least, it would seem to embolden stuff which
>> requires an argument (i.e. music functions and markup functions),
>> not articulations which don't require a subsequent argument.
>> There's a certain logic to that, surely?
>
> For me, it feels inconsistent – a command starting with `\' should be
> marked as such, i.e., printed in bold, regardless whether it has an
> argument or not.  This is what you see in virtually all environements
> that colour/embolden keywords.

Frankly, syntax highlighting that doesn't highlight syntax but merely
lexemes does not seem all that helpful to me.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]