[Top][All Lists]

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

Re: html manual +css

From: Patrice Dumas
Subject: Re: html manual +css
Date: Wed, 15 Jan 2020 14:43:49 +0100

On Wed, Jan 15, 2020 at 09:12:15PM +0900, Jean-Christophe Helary wrote:
> > 
> > The Guix developers managed to implement syntax highlighting by
> > post-processing the HTML.
> > (
> Wow, I just checked this page:
> and the source if full of css "hooks" even for the parens in the code...
> What they do is interesting, and I guess some kind of postprocessing would be 
> possible to achieve what I suggest, but instead of that, I'm guessing that 
> just having texinfo add the css selectors would be easier.

There are already hooks to customize the HTML produced, but it requires
knowing perl and digging into the HTML customization API which is not
documented anywhere.

My wild guess is that it could be possible to generate the same output
using this facility, maybe using something similar with how @math and 
@tex blocks are processed by outside commands in tp/init/
or tp/init/  I do not know if it is the best way, though,
maybe it makes sense to use guile to highlight code in the guile manual.

> Also, what's interesting with the current HTML export is that even though it 
> is quite "old" in terms of standard (supposed to accept HTML 3.2 if I 
> remember correctly ?) adding appropriate classes and IDs is just enough to 
> access even bleeding edge CSS. Hence the idea of adding the appropriate 
> "hooks" directly from texinfo.

Currently the default is 4.01 Transitional.  But there is a
customization file to produce HTML 3.2 in tp/init/


reply via email to

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