don't get rid of the monospace font
discord seems to be a-b testing a new font for the `code blocks` that isn't monospaced, at least on some platforms:
compare the original:
this is pretty dumb?? I don't understand the point of having a code block feature that isn't monospaced, seeing as virtually all code is written in monospaced font, and also having a monospaced font is just really useful. I'm in a bunch of linguistics servers, where often we use the code block feature to show translations, and line up the word-for-word translations perfectly with the original text, for example. several features of the bot I develop also rely on having a monospaced font. I really don't see any reason to change this like this.
-
Update* There does indeed appear to be a monospace issue on some devices across the board, take the info below with a massive grain of salt.
Did inline single backtick code blocks ever look mono spaced on mobile? On Android I don't believe it ever has.
Make sure if you want monospace always use a triple backtick.
DO:
```
All code in here will be monospace on all platforms.
And always displayed separately from non code block text.
```
DON'T:
`This will only be monospace on desktop,
and will not be separated from non code text on the same line.`
1 -
response to the above: the code blocks pictured are triple-backtick code blocks; you can tell by the way they both extend past the right edge of the second image, all the way to the right edge of the desktop chat window. I cropped the image for readability.
personally, I use iOS, and still see these code blocks as monospace on both PC and mobile. my source for the non-monospace fonts is an Android user, who also has old screenshots of monospace code blocks. the below screenshot was taken in June 2020, and clearly features both triple-backtick (top) and single-backtick (bottom) code blocks, both monospaced:
plus, even if it were the case that, for whatever reason, Android in particular did not have monospaced code blocks, I don't see why they shouldn't be added to Android. that's still a problem needing fixed
(edit: switched to an uncropped screenshot)
0 -
Honestly, I'm surprised anyone could think using proportional fonts for code blocks was a good idea. Instead of giving us feature parity for code blocks (i.e., syntax highlighting), we get an antifeature nobody needs or wants.
If this must remain this way, at least add a setting for it. I can see the point of using a proportional font to allow longer lines to fit, but the same could've been achieved by simply making the font smaller.
1 -
Fort You are indeed correct. I have now chatted with others having the same issue. Hope they fix is soon.
1 -
Can reproduce on Samsung Galaxy S6 Edge (Android 7) and Google Nexus 5 (Android 6).
Same thing has happened to me, I thought it was a problem only I had.
0 -
I encountered the same problem on my Samasung Galaxy J500G (Android 6.0.1). This only happened since the last update (18 Dec. 2020).
1 -
Got same issue in android version 53.8, not sure if this happened before.
1
請登入寫評論。
評論
7 條評論