Page 1 of 1
Changing font for Geshi
Posted: Thu Oct 06, 2011 3:47 pm
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
Re: Changing font for Geshi
Posted: Thu Oct 06, 2011 4:03 pm
by yellowled
Lux wrote:I want to change the font for Geshi to an unproportional one like Courier.
Use the source, Luke.
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
Re: Changing font for Geshi
Posted: Thu Oct 06, 2011 4:11 pm
by Lux
yellowled wrote:Use the source, Luke.

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