From: ygrex <ygrex@ygrex.ru>
To: 9front@9front.org
Subject: [9front] Any way to insert code verbatim bypassing the rest of parsing in troff?
Date: Sun, 2 Jun 2024 21:47:27 +0300 [thread overview]
Message-ID: <20240602214727.5acc13aa@ygrex-t550.ygrex.ru> (raw)
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
next reply other threads:[~2024-06-02 18:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-02 18:47 ygrex [this message]
2024-06-02 18:54 ` sl
2024-06-02 22:53 ` [9front] " Anthony Martin
2024-06-03 6:21 ` ygrex
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240602214727.5acc13aa@ygrex-t550.ygrex.ru \
--to=ygrex@ygrex.ru \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).