Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SeanLuke
on June 27, 2022
|
parent
|
context
|
favorite
| on:
Explaining Code Using ASCII Art
Wait, wait, wait. This entire webpage has examples of ASCII art, and yet 100% of the examples are
bitmaps
?
jylam
on June 27, 2022
|
next
[–]
They are JPEGs, even. How sacrilegious.
gpmcadam
on June 27, 2022
|
prev
|
next
[–]
to be fair, mobile users are probably grateful of that
xdrosenheim
on June 27, 2022
|
parent
|
next
[–]
Not me, as they are all in different resolutions, having to zoom out, to zoom in, and zoom in again. Simple text would be better.
diarrhea
on June 27, 2022
|
prev
|
next
[–]
The author collected these from a Twitter thread of theirs, in which the artworks had to be shared as images. Converting all back to text would be laborious.
chrismorgan
on June 27, 2022
|
parent
|
next
[–]
Each image is a link to the original source. It was a simple matter of copying and pasting the text instead of the image.
behnamoh
on June 27, 2022
|
root
|
parent
|
next
[–]
But then you wouldn't see them correctly on mobile browsers.
colejohnson66
on June 27, 2022
|
root
|
parent
|
next
[–]
If you're referencing line wrapping, wrapping the <pre> in a <div> with just two styles would work:
display: block; overflow-x: auto;
That would allow the <pre> to overflow to the right and let the user scroll over.
tnzk
on June 27, 2022
|
prev
[–]
Isn't it fair considering how easy they could be broken due to the difference between environments?
Cthulhu_
on June 27, 2022
|
parent
[–]
Put them in `<pre>` tags and they should render as monospace and the whitespace as-is at least.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: