Hi Patrice!

> Le 26 avr. 2019 à 23:38, Patrice Dumas <[email protected]> a écrit :
> 
> On Fri, Apr 26, 2019 at 05:54:34PM +0200, Akim Demaille wrote:
>> Hi all,
>> 
>> Bison has recently gained colored diagnostics, like GCC does.  I would like
>> to document that and show examples of this.  I would like to do that in PDF,
>> but I don't think it is possible, and probably not desirable.  I would like
>> to do it in HTML, but then I have a bunch of problems on how to do it.
> 
> For text within a paragraph, it is better to use inline conditionals,
> like @inlineraw{html, <b style="color:\name\">\text\</b>}, so the whole
> could be something like
> 
> @macro color{name, text}
> @inlinefmtifelse{html, @inlineraw{html, <b style="color:\name\">\text\</b>}, 
> \text\}
> @end macro

Excellent!  That is exactly what I needed, it works brilliantly.  Sorry I 
missed that in the documentation :(

Thanks a lot!

Reply via email to