OSDev.org
https://forum.osdev.org/

Configuring post editors (forum/wiki) with monospaced font
https://forum.osdev.org/viewtopic.php?f=6&t=30226
Page 1 of 1

Author:  ~ [ Wed Mar 23, 2016 12:20 pm ]
Post subject:  Configuring post editors (forum/wiki) with monospaced font

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:
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:
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;
}


Author:  glauxosdever [ Thu Mar 24, 2016 5:35 am ]
Post subject:  Re: Configuring post editors (forum/wiki) with monospaced fo

Hi,


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


Regards,
glauxosdever

Author:  Kazinsal [ Thu Mar 24, 2016 10:14 am ]
Post subject:  Re: Configuring post editors (forum/wiki) with monospaced fo

You can use an extension like Greasemonkey on Firefox or Tampermonkey in Chrome and other Webkit-based browsers for custom CSS overrides.

Author:  onlyonemac [ Wed Apr 06, 2016 2:18 pm ]
Post subject:  Re: Configuring post editors (forum/wiki) with monospaced fo

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/