Page 1 of 1

software code field

Posted: Wed Mar 24, 2010 7:26 pm
by rafi
hello,

im looking for this funktion in serendipity

Code: Select all

want to
put 
code
in 
code-boxes
some way to do it?

Re: software code field

Posted: Wed Mar 24, 2010 7:38 pm
by onli
Hi
Of course. Surround the code b< <pre> and </pre>. I use
<pre class="code">...</pre> and following css:

Code: Select all

pre.code {
    margin: 0 14px 5px 14px;
    padding: 2px 0 2px 10px;
    border: 1px inset #bbb;
    width: 90%;
    overflow: auto;
    background: #F1F1F1;
}
If you want highlighting, have a look at the geshi-Plugin (although I've never used it).
sincerely

Re: software code field

Posted: Thu Mar 25, 2010 9:16 am
by rafi
thanks for this hint works great