Configuring post editors (forum/wiki) with monospaced font

Questions, comments, and suggestions about this site should go here.
Post Reply
User avatar
~
Member
Member
Posts: 1225
Joined: Tue Mar 06, 2007 11:17 am
Freenode IRC: ArcheFire

Configuring post editors (forum/wiki) with monospaced font

Post by ~ »

After many posts with inline code, it starts to feel difficult to format well the code with the current default fonts unsuitable for formatting code without having to paste it in a Notepad program (Lucida Grande, Verdana, Helvetica, Arial, sans-serif aren't so good to write code).

This file would need to be changed:
http://f.osdev.org/styles/MegaTokyo/theme/stylesheet.css


These lines should be modified with a different font:

Code: Select all

textarea {
   background-color: #074796; /* #FAFAFA; */
   color: white; /* #333333; */
   font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
   font-size: 1.3em;
   line-height: 1.4em;
   font-weight: normal;
   border: 1px solid #A9B8C2;
   padding: 2px;
}




They should look like this:

Code: Select all

textarea {
   background-color: #074796; /* #FAFAFA; */
   color: white; /* #333333; */
   font-family: "Courier New", Courier, Monospace;
   font-size: 1.3em;
   line-height: 1.4em;
   font-weight: normal;
   border: 1px solid #A9B8C2;
   padding: 2px;
}

glauxosdever
Member
Member
Posts: 501
Joined: Wed Jun 17, 2015 9:40 am
Freenode IRC: glauxosdever
Location: Athens, Greece

Re: Configuring post editors (forum/wiki) with monospaced fo

Post by glauxosdever »

Hi,


Ignoring your previous attitude when posting, I agree with your statement here.


Regards,
glauxosdever
User avatar
Kazinsal
Member
Member
Posts: 558
Joined: Wed Jul 13, 2011 7:38 pm
Freenode IRC: Kazinsal
Contact:

Re: Configuring post editors (forum/wiki) with monospaced fo

Post by Kazinsal »

You can use an extension like Greasemonkey on Firefox or Tampermonkey in Chrome and other Webkit-based browsers for custom CSS overrides.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Configuring post editors (forum/wiki) with monospaced fo

Post by onlyonemac »

I remember that one Linux system that I once had came with an extension called "Stylish" pre-installed in Firefox. I never tried it but it seemed to be designed specifically for this kind of thing and people said that it was quite good.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Post Reply