bug-texinfo
[Top][All Lists]
Advanced

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

Re: Syntax highlighting for examples in Texinfo?


From: Eli Zaretskii
Subject: Re: Syntax highlighting for examples in Texinfo?
Date: Sat, 06 Jan 2001 13:24:00 +0200

> From: "Bradley M. Kuhn" <address@hidden>
> Date: Fri, 5 Jan 2001 16:43:14 -0500
> 
> Many output formats that Texinfo targets now support color.  It would be
> nice if output could generate color on those devices (such as Emacs' info
> browser and PDF files).
> 
> At the Texinfo level, of course, we'd need various tags that can be used for
> marking up code.
> 
> A few possible ideas are:
> 
>  address@hidden'    a keyword in a programming language
> 
>  address@hidden'      a literal string in a programming language
> 
>  address@hidden' an operator in a programming language
> 
>  address@hidden'      a data type in a programming language 
> 
>  address@hidden'        a variable in a programming language  (different
>                          from @var, of course)

How exactly do you suggest to make these stand out in color in the
Info output?

> I think just using @code{} or putting program in @example{} environments is
> useful, but not particularly descriptive.  I'd like to be able to mark-up
> code so then PDF formatters and other color-enabled formatters can use
> color.

Why can't you simply use @code etc. to get the markup?  How will the
effect of @keyword be different from @code?



reply via email to

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