[Tutor] Reading Tutor with gmail: monospace fonts

John Purser johnp at milwaukielumber.com
Fri Feb 25 00:15:47 CET 2005


Thanks for the tip.

John Purser 

-----Original Message-----
From: tutor-bounces at python.org [mailto:tutor-bounces at python.org] On Behalf
Of Michael Dunn
Sent: Thursday, February 24, 2005 14:43
To: tutor at python.org
Subject: [Tutor] Reading Tutor with gmail: monospace fonts

Hi all,

This is slightly off topic, but I've noticed a lot of people are using
gmail accounts to post to tutor and I just wanted to share a useful
trick I just learned for making gmail display and edit mail with a
monospace rather than proportional font. I'm sure anyone who's tried
it agrees that significant whitespace means that python and
proportional fonts don't play well together...

Basically, you need to get your browser to override the stylesheet of
the page with the following snippet of css:

div.msg div.mb, .cm, .tb {
        font-family: monospace !important;
        font-size: 12px !important;
}

In Firefox, you add it to the userContent.css file in your preferences
(you'll probably have to create this, see
http://www.mozilla.org/support/firefox/edit). With Safari on MacOSX
you make a css file anywhere you like (I used
~/Library/Safari/MyPrefs.css), add this snippet, and then select the
file from the "Advanced" tab in Safari's Preferences. I don't know
about other browsers, but the same sort of thing is almost certainly
possible.

Cheers, Michael
_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list