On Tue, 12 Jan 2021, M Douglas McIlroy wrote:
I wonder how I can format a nice algorithm in the usual sense in groff.
I want to write pseudocode...\
It all depends on what you mean by "nice". If it's just a properly indented
listing, most of the standard macro packages have adequate support.
F
Both syntax highlighting and elegant algorithm specifications would make
great preprocessors. ;-) I find the latter works best when used tastefully
(and never, *ever* in a manual page).
It'd be trivial to write an Awk script for replacing basic-looking
keywords, substituting them with proper place
> I wonder how I can format a nice algorithm in the usual sense in groff.
> I want to write pseudocode...\
It all depends on what you mean by "nice". If it's just a properly indented
listing, most of the standard macro packages have adequate support.
For example, in the -ms package (man 7 groff_ms
Hi,
I wonder how I can format a nice algorithm in the usual sense in groff.
I want to write pseudocode...
//F