Thu 16 Apr |
|
The default css for the Joomla GeSHi (Generic Syntax Highlighter) plugin prevents any line wrapping until the end of any code snippet. This can often break your page layout. By adding these couple of lines to the template css the code breaks nicely to fit within your layout. If your code isn't wrapping where it should do the following - The element tag for GeSHi is <pre xml:html> so find which style sheet is operating on the "pre" tag, normally your template_css.css or template.css (J1.0). Paste in this code snippet (it seems a lot just to wrap but this is to cover all eventuallities ;) ) pre, .code { white-space:normal; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-family:courier; overflow:hidden; } That should solve the problem.... |
Last Updated on Tuesday, 05 May 2009 11:58 |