You are not logged in.

#1 2022-11-20 23:57:45

kocheng
Member
Registered: 2022-10-22
Posts: 17

Using monospace font when writing post

Is there some setting so that I can use monospace font when writing a post? I mean, just look at other website, like Stackoverflow or Unix & Linux Stackexchange. That's very good. Also, a lot of the text on the forum is often a terminal output, or some random bash script, config files, etc, which is written on monospace font. And I don't see any disadvantages of using monospace font when writing.

Last edited by kocheng (2022-11-21 00:40:11)


Sorry if my English is bad.
Oh, and PLEASE remind me if I had accidentally post something sensitive...

Offline

#2 2022-11-21 01:45:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,576
Website

Re: Using monospace font when writing post

Just set a user-style or custom css with `textarea { font-family: monospace !important; }` for bbs.archlinux.org.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#3 2022-11-21 02:44:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,830

Re: Using monospace font when writing post

Code blocks use monospace fonts already.

Offline

#4 2022-11-21 02:51:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,576
Website

Re: Using monospace font when writing post

Scimmia, the OP is asking about writing posts / replies (and / or editting them).  Code blocks do not exist there (other than uninterpreted bbcode tags).  I've ran into this mild annoyance several times myself, and this post got me to add the monospace rule to my custom css I already had for the bbs.  It's a nice change.

Last edited by Trilby (2022-11-21 14:36:22)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#5 2022-11-21 10:00:48

kocheng
Member
Registered: 2022-10-22
Posts: 17

Re: Using monospace font when writing post

Trilby wrote:

and this post got me to add the monospace rule to my custom css I already had for the bbs.

I'm sorry, but if you don't mind, could you please provide me how to do that? I don't know anything about CSS...
Btw, I'm using Firefox.


Sorry if my English is bad.
Oh, and PLEASE remind me if I had accidentally post something sensitive...

Offline

#6 2022-11-21 12:15:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,516

Re: Using monospace font when writing post

https://bbs.archlinux.org/viewtopic.php?id=272718 deals with using a specific custom style for archlinux wiki.
I do use that and it is applied through the firefox stylus addon .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2022-11-21 12:20:04

seth
Member
Registered: 2012-09-03
Posts: 33,673

Re: Using monospace font when writing post

https://bbs.archlinux.org/viewtopic.php?id=279719 for the forum.
I'm currently testing whether I like a monospace input wink

Offline

#8 2022-11-21 13:51:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,576
Website

Re: Using monospace font when writing post

Ah ... with all due respect to seth's contribution (really, genuinely ... I use it and love it) that's a bit of a distraction from the OPs actual question.

All that's needed for the goal here is a simple single line of css, not a complete style overhaul.  The remaning question of how to implement a css style is browser dependent and not addressed by the linked style-overhaul thread.  For firefox the above-linked stylus is one option, greasemonkey would work as well.  Last time I used firefox there were countless addons and methods of implementing custom css, any one of them would do.

Last edited by Trilby (2022-11-21 14:35:45)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

Board footer

Powered by FluxBB