Page 1 of 1
Geshi and monospace
Posted: Fri Mar 27, 2009 5:32 pm
by Thermoretiker
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.
Re: Geshi and monospace
Posted: Mon Mar 30, 2009 12:10 pm
by garvinhicking
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
Re: Geshi and monospace
Posted: Thu Apr 23, 2009 12:49 pm
by Thermoretiker
Thanks for your reply. I just grep()ed the sources:
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;';
and thought it was my fault. Your solution works, of course (I prefer font-family: monospace;).