On Thu, Mar 20, 2025 at 07:59:15PM +0100, Rudolf Adamkovič wrote:
> So, I tried syntax highlight today, and per
> 
>   Source highlighting is experimental; feedback is welcomed.
> 
> I would like to report two issues:
> 
> 1. I noticed that
> 
>      texi2any --set-customization-variable HIGHLIGHT_SYNTAX=pygments ...
> 
>    works but
> 
>      texinfo_set_from_init_file('HIGHLIGHT_SYNTAX', 'highlight');
> 
>    in my --init-file does not.

I cannot reproduce that issue...  We probably would need more
information, such as the actual init file for example.

> 2. I cannot change Pygments to dark style because
> 
>      $cmd = 'pygmentize -f html -l '.$language
>             . ' -O noclasses=True';
> 
>    is hard-coded, with no way to pass in
> 
>      -P style=...

Indeed, the current way of doing syntax highlighting is not customizable
enough.  There is a plan to change how this is done as discussed in the
theread started by this mail:
https://lists.gnu.org/archive/html/bug-texinfo/2024-11/msg00109.html

-- 
Pat

Reply via email to