Select to view content in your preferred language

Add "Monospaced" font as option for regular text

372
2
03-28-2025 09:54 AM
Labels (1)
DavidSolari
MVP Regular Contributor

The Code Block section

<p>You know, this fella</p>

has a class that assigns an appropriate monospaced font based on what the browser has access to. I would like to see this class available as a "Monospaced" font choice that can be applied to any text. I like to use an alternate font for inline code references like so and it'd be nicer if the same font was used for both this and the code blocks. I'd also accept an inline variant of the code block instead.

0 Kudos
2 Replies
AlfredBaldenweck
MVP Regular Contributor
Doesn't this option work?

AlfredBaldenweck_0-1743532016152.png

 

Or maybe I'm not understanding?

0 Kudos
DavidSolari
MVP Regular Contributor

That looks like it's applying the "<pre>" tag which forces block display for that text. I'm thinking something that can be done inline, which I can't mock up due to HTML styling restrictions.

0 Kudos