OSDev.org

The Place to Start for Operating System Developers
It is currently Fri May 26, 2017 7:11 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: 889
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;
}


_________________
Image http://www.archefire.org/_PROJECTS_/

YouTube Development Videos:
http://www.youtube.com/user/AltComp126/videos

If my website doesn't work, please reload until the webpages can display. My server is really slow.


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

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


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


Regards,
glauxosdever

_________________
Before implementing any piece of software, make sure you have designed it to be extendable. Backporting new features into old code is not always easy.


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: 495
Location: Victoria, Canada
You can use an extension like Greasemonkey on Firefox or Tampermonkey in Chrome and other Webkit-based browsers for custom CSS overrides.

_________________
The good thing about Unix is when it screws up, it does so very quickly.


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: 1079
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 2 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