Hi,
I installed Geshi and it seems to work - at least the highlighting, but the font is not in monospace and source code in proportional fonts is ugly. Is this an configuration/installation error? There are geshi classes in the div, but not in the delivered css files.
Geshi and monospace
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Geshi and monospace
Hi!
Geshi uses its unique CSS classes. You can address those by editing the style.css stylesheet of your selected template, and for example insert
Since some people appreciate mono-space and others don't, the plugin actually doesn't enforce any CSS rules on its own. Maybe for the future it could be nice to add a config option to the plugin to allow the user to choose between reasonable defaults (serif and sans-serif?) ...
Regards,
Garvin
Geshi uses its unique CSS classes. You can address those by editing the style.css stylesheet of your selected template, and for example insert
Code: Select all
.geshi {
font-family: Courier;
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Thermoretiker
- Posts: 2
- Joined: Fri Mar 27, 2009 5:23 pm
Re: Geshi and monospace
Thanks for your reply. I just grep()ed the sources:
and thought it was my fault. Your solution works, of course (I prefer font-family: monospace;).
Code: Select all
geshi/css.php: 'medium', 'message-box', 'middle', 'mix', 'monospace', 'n-resize',
geshi.php: var $overall_style = 'font-family:monospace;';
geshi.php: var $code_style = 'font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;';