[GH-ISSUE #3915] [FR] Ability to select monospaced fonts for code blocks #1776

Closed
opened 2026-03-23 21:17:02 +00:00 by mirror · 2 comments
Owner

Originally created by @rinodrops on GitHub (Nov 10, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3915

Originally assigned to: @Xazin on GitHub.

Description

Some users, including me, want to use monospaced fonts for code (even if I'm a C++ programmer ;)).
Considering arguments related to the programming fonts took various places on the net, it is preferable to choose the font from locally installed on the PC: #3534

Impact

Everyone who dances with the best coding font of the year.

Additional Context

No response

Originally created by @rinodrops on GitHub (Nov 10, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3915 Originally assigned to: @Xazin on GitHub. ### Description Some users, including me, want to use monospaced fonts for code (even if I'm a C++ programmer ;)). Considering arguments related to the programming fonts took various places on the net, it is preferable to choose the font from locally installed on the PC: #3534 ### Impact Everyone who dances with the best coding font of the year. ### Additional Context _No response_
Author
Owner

@halr9000 commented on GitHub (Nov 22, 2023):

Monospace should always be the default for code blocks IMHO. I can hardly think of a situation where a proportional font would be preferred unless someone were "misusing" it as a shortcut to bring emphasis to an arbitrary block of text.

Which arguably, you guys do right here lol, but that's ok, I forgive you because you've got a sweet app.
image

"however" - arbitrary choice IMHO
"/", "/bullet", "/num": these do make sense as they are string literals
"Document", "Grid", "Kanban Board" are iffy to me. Proper nouns to be sure, so capitalized. But not sure if I would use code block for emphasis this way.

I'm being picky about this calling back to my time as author of a tech book with lots of code samples, and experience working with docs teams at my employer.

<!-- gh-comment-id:1823146984 --> @halr9000 commented on GitHub (Nov 22, 2023): Monospace should always be the default for code blocks IMHO. I can hardly think of a situation where a proportional font would be preferred unless someone were "misusing" it as a shortcut to bring emphasis to an arbitrary block of text. Which arguably, you guys do right here lol, but that's ok, I forgive you because you've got a sweet app. ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/18482/22270552-c1b0-461c-b1bd-6eac56e43f34) "however" - arbitrary choice IMHO "/", "/bullet", "/num": these do make sense as they are string literals "Document", "Grid", "Kanban Board" are iffy to me. Proper nouns to be sure, so capitalized. But not sure if I would use code block for emphasis this way. I'm being picky about this calling back to my time as author of [a tech book](https://www.google.com/books/edition/Managing_Vmware_Infrastructure_with_Wind/2HpvPgAACAAJ?hl=en) with lots of code samples, and experience working with docs teams at my employer.
Author
Owner

@annieappflowy commented on GitHub (Apr 25, 2024):

@rinodrops @halr9000
We have added monospaced fonts for code blocks in the latest release (v0.5.5)
Please give it a try and let us know your feedback.

<!-- gh-comment-id:2077320211 --> @annieappflowy commented on GitHub (Apr 25, 2024): @rinodrops @halr9000 We have added monospaced fonts for code blocks in the latest release ([v0.5.5](https://github.com/AppFlowy-IO/AppFlowy/releases/tag/0.5.5)) Please give it a try and let us know your feedback.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1776
No description provided.