9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Any way to insert code verbatim bypassing the rest of parsing in troff?
@ 2024-06-02 18:47 ygrex
  2024-06-02 18:54 ` sl
  2024-06-02 22:53 ` [9front] " Anthony Martin
  0 siblings, 2 replies; 4+ messages in thread
From: ygrex @ 2024-06-02 18:47 UTC (permalink / raw)
  To: 9front

Hello,

Tried my best in troff to insert a block of code varbatim but it does
not work as I would like it to.

First attempt with .DS/.DE ms macros breaks my backslashes, I need to
replace them with '\e'.

Second attempt to leverage .eo/.ec to keep backslashes, it does but
breaks code lines, I need to insert extra empty lines in between to
keep the lines. It looks worse than with .DS/.DE after all.

Unfortunately, mixing .DS/.DE with .eo/.ec does not work, backslashes
get removed as I tried.

As far as I figured it out, .DS/.DE block gives the best results but
can I bypass its backslash interpolation somehow?

-- 
Sincerely yours,

Igor Bogomazov
Saint Petersburg, Russia


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-03  6:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-02 18:47 [9front] Any way to insert code verbatim bypassing the rest of parsing in troff? ygrex
2024-06-02 18:54 ` sl
2024-06-02 22:53 ` [9front] " Anthony Martin
2024-06-03  6:21   ` ygrex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).