Changing font for Geshi

Creating and modifying plugins.
Post Reply
User avatar
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Changing font for Geshi

Post by Lux » Thu Oct 06, 2011 3:47 pm

Hi,

I want to change the font for Geshi to an unproportional one like Courier.

How can I achieve this?

Thanks for any support.

Dirk

User avatar
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Changing font for Geshi

Post by yellowled » Thu Oct 06, 2011 4:03 pm

Lux wrote:I want to change the font for Geshi to an unproportional one like Courier.
Use the source, Luke. :wink:

Add this to your template's style.css:

Code: Select all

.geshi { font-family: Courier, monospace; }
Or whatever font stack you prefer. Personally, I prefer

Code: Select all

.geshi { font-family: Consolas, 'Courier New', Courier, monospace; } 
but Consolas is not available on any system. However, make sure that you include monospace as a fallback.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: Changing font for Geshi

Post by Lux » Thu Oct 06, 2011 4:11 pm

yellowled wrote:Use the source, Luke. :wink:
:-)
yellowled wrote:Add this to your template's style.css:

Code: Select all

.geshi { font-family: Consolas, 'Courier New', Courier, monospace; } 
but Consolas is not available on any system. However, make sure that you include monospace as a fallback.
Perfect! Thanks a lot.

Cheers

Dirk

Post Reply