code box font color

Questions about the project and the distribution - obviously no support questions here please

code box font color

Postby Elderwuss on Fri Nov 18, 2011 8:59 pm

I can find no way to change the color of fonts in CODE: boxes. Does this require a Linux Mint agent? If so please change the font color to something closer to black than white. The current light blue/green is unreadable for me. :(
Elderwuss
Level 1
Level 1
 
Posts: 37
Joined: Sun Mar 27, 2011 8:27 pm

Linux Mint is funded by ads and donations.
 

Re: code box font color

Postby xenopeek on Sat Nov 19, 2011 1:52 pm

Assuming you are using the Firefox browser. There are various add-ons to Firefox that let you customize the style of a website, for example making the code block have white on black text. I don't have any experience with those however, so somebody else will have to chirp in on that. But you can also do this easily by creating a file of user content. To start, open a terminal and run the following commands (I'm not using the code block so you can read it better):

cd ~/.mozilla/firefox/*.default
mkdir chrome
cd chrome
gedit userContent.css


After you have run these four commands, you should have gedit text editor open. Copy the following six lines into it

@-moz-document domain(linuxmint.com) {
code {
background-color: black !important;
color: white !important;
}
}


Save and close the file. Restart Firefox, and any CODE blocks on the linuxmint.com website are now white text on a black background. You can change that to other colors as desired, and you can add other CSS markup, for example to change the font-size or the font-weight.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14720
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: code box font color

Postby Elderwuss on Sun Nov 20, 2011 9:29 pm

Cool...Thank you very much.
Elderwuss
Level 1
Level 1
 
Posts: 37
Joined: Sun Mar 27, 2011 8:27 pm


Return to Non-technical Questions

Who is online

Users browsing this forum: No registered users and 3 guests