On 7/18/25 7:04 AM, Gavin Smith wrote:
On Wed, Jul 16, 2025 at 02:27:25PM -0700, Raymond Toy wrote:
I'm experimenting with HIGHLIGHT_SYNTAX=source-highligit. It works fine with
--no-split and produces pretty nice highlighting.
However, when I don't use --no-split, I get an error. An example error
message:
|makeinfo: warning: highlight_syntax.pm: could not open
cmu-user_html/cmu-user_highlight_c_input.c: No such file or directory |
The file cmu-user_highlight_c_input.c is actually in the current directory,
not in the subdirectory cmu-user_html.
Note that pygments works fine when the HTML output is split. I'm just
playing around to see which one does a better job.
​
I was hoping somebody else would reply as I have limited knowledge about
this feature.
I've installed the 'source-highlight' program and tested this with
texi2any 7.2. (Building from the git repository has been broken for a
few days.) It appears to work fine, both with and without --no-split.
Highlighting appears in the output file. Can you produce a minimum
failing example?
Huh, this is weird. Perhaps I messed up building texinfo 7.2 from
sources a while back?
Anyway, with your test, I ran it. I get a message that it can't include
src-hl.c. That seems to come from the line
|@include src-hl.c |
I changed it to
|#include src-hl.c |
Now I get the message:
|texi2any: warning: highlight_syntax.pm: could not open
src-hl_html/src-hl_highlight_C_input.C: No such file or directory |
It all works fine when I add |--no-split|.
Don't know why I get different results. Maybe I didn't install texinfo
correctly or don't have my envvars set correctly to get the right stuff
from texinfo? I do have the system texinfo (7.1) installed, but my 7.2
build is in a separate directory.
​