OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 8:43 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Configuring post editors (forum/wiki) with monospaced font
PostPosted: Wed Mar 23, 2016 12:20 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 06, 2007 11:17 am
Posts: 1225
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;
}


_________________
Live PC 1: Image Live PC 2: Image

YouTube:
http://youtube.com/@AltComp126/streams
http://youtube.com/@proyectos/streams

http://master.dl.sourceforge.net/projec ... 7z?viasf=1


Top
 Profile  
 
 Post subject: Re: Configuring post editors (forum/wiki) with monospaced fo
PostPosted: Thu Mar 24, 2016 5:35 am 
Offline
Member
Member

Joined: Wed Jun 17, 2015 9:40 am
Posts: 501
Location: Athens, Greece
Hi,


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


Regards,
glauxosdever


Top
 Profile  
 
 Post subject: Re: Configuring post editors (forum/wiki) with monospaced fo
PostPosted: Thu Mar 24, 2016 10:14 am 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 558
You can use an extension like Greasemonkey on Firefox or Tampermonkey in Chrome and other Webkit-based browsers for custom CSS overrides.


Top
 Profile  
 
 Post subject: Re: Configuring post editors (forum/wiki) with monospaced fo
PostPosted: Wed Apr 06, 2016 2:18 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group