Re: [Groff] Groffing a Perl routine

2008-11-21 Thread Ralph Corderoy
Hi Miklos, > Perl is full of things that groff doesn't like. How would you include > a Perl routine in a groff document? Others have provided an answer to your question but it did remind me once again that if something like GNU Source-highlight grew a troff backend to accompany its existing HTM

Re: [Groff] Groffing a Perl routine

2008-11-21 Thread Miklos Somogyi
Tadziu & Ted, thank you very much for the quick reply. First I tried Tadziu's suggestion with a simple file containing nothing but a short segment of a Perl routine. It worked beautifully. However, when I applied it with the same segment in context, it gave me warnings. Then I tried the sa

Re: [Groff] Groffing a Perl routine

2008-11-21 Thread Ted Harding
On 21-Nov-08 08:32:46, Tadziu Hoffmann wrote: > >> forget about special characters and leave this thing as it is, >> for a while? > > .eo > .ec Provided no "in-code" escapes or macros (e.g. to embolden or format a particular segment of Perl code) will be needed, Tadziu's solution will be simple

Re: [Groff] Groffing a Perl routine

2008-11-21 Thread Tadziu Hoffmann
> forget about special characters and leave this thing as it is, > for a while? .eo .ec

[Groff] Groffing a Perl routine

2008-11-21 Thread Miklos Somogyi
Hello all, Perl is full of things that groff doesn't like. How would you include a Perl routine in a groff document? Backslashing all the way until the text is absolutely unrecognizable, or would you tell groff somehow that plse, forget about special characters and leave this thing as it i