lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] reading code section


From: Paul Gilmartin
Subject: Re: [Lynx-dev] reading code section
Date: Fri, 20 Nov 2020 16:23:11 -0700

On 2020-11-20, at 16:07:47, Thorsten Glaser wrote:
> 
>> I am working with some html files that have a <code> </code> section.  Is 
>> there a way to have lynx display tese areas?
> 
> lynx -dump -stdin <<\EOF
> <html><head><title>meow</title></head><body>
> <p>foo</p><code>bar</code><p>baz</p></body></html>
> EOF
> 
>   foo
>   bar
> 
>   baz
> 
> So, it does display the “code” blocks. The purpose of the “code”
> tag is to switch to monospaced font, which in lynx is the only
> font, so it’s effectively a nop for lynx.
>  
Perhaps more important, and not effectively a nop for lynx, it
preserves whitespace, copyint it from the HTML source to the
rendered page.

-- gil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]