From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id 4CEB6284D4 for ; Mon, 3 Jun 2024 08:22:41 +0200 (CEST) Received: from ygrex.ru ([5.19.241.250]) by 9front; Mon Jun 3 02:21:38 -0400 2024 Received: from ygrex-t550.ygrex.ru (unknown [172.16.64.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by ygrex.ru (Postfix) with ESMTPSA id 2BD6D4008A for <9front@9front.org>; Mon, 3 Jun 2024 09:21:24 +0300 (MSK) Date: Mon, 3 Jun 2024 09:21:23 +0300 From: ygrex To: 9front@9front.org Message-ID: <20240603092123.5457b1a9@ygrex-t550.ygrex.ru> In-Reply-To: References: <20240602214727.5acc13aa@ygrex-t550.ygrex.ru> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: webscale XMPP injection property element hardware-aware controller Subject: Re: [9front] Re: Any way to insert code verbatim bypassing the rest of parsing in troff? Reply-To: 9front@9front.org Precedence: bulk Thank you everyone for the suggestions. On Sun, 2 Jun 2024 15:53:01 -0700 Anthony Martin wrote: > You can turn off filling and disable the escape mechanism with: > > .nf > .eo > some text with backslashes like \ and \foo. > > and empty lines like above. > just don't start a line with a control character: > .this is good > \.as is this > .but not this > 'or this. > see? > .ec > .fi > This seems exactly what I needed. To make it look more like a code block I ended up with the following incantation: .RS .fw CW .nf .eo code follows here .ec .fi .ft .RE It results in being indented and in constant width font. Some precautions needed if it gets spanned to the next page though, .bp helps to save formatting. -- Sincerely yours, Igor Bogomazov Saint Petersburg, Russia