Changing font for Geshi

Creating and modifying plugins.
Post Reply
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 »

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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Changing font for Geshi

Post by yellowled »

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
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 »

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