"Dr. Arne Babenhauserheide" writes: > Cecilio Pardo writes: > >> As texinfo is not going to add features like color to the Info format, > > This could also be added in HTML Exports via Javascript-Libraries. And without: (texinfo) Syntax Highlighting >> I think maybe emacs could add some itself. >> >> For example, the Emacs Lisp Intro uses @smallexample blocks for >> presenting lisp code. I modified makeinfo more or less successfully to >> generate a file with the line numbers where these blocks start. With >> this kind of information, emacs could fontify the source code. >> >> Does this sound good? > > That definitely sounds interesting! > > Could it also detect source blocks in *info* on the fly and then > highlight the block like orgmode does it? Instead of guesswork, the info format should be extended to contain the language ID @example can take as an argument. Really, the entire info format can be significantly better. It is currently a marked-up catfile. IMO, it should be replaced with something that has a proper DOM. -- Arsen Arsenović