I want to publish some code on my blog to show it to other people.
I user the "pre" tag, but I get too many new rows. It is because serendipity replaces all new rows in my post with br tag or whatever. How could I disable this for a single post?
10x,
Anton
publishing programming code
Re: publishing programming code
Might be or probably is. You might want to take a look at the Geshi plugin.toncho11 wrote:I want to publish some code on my blog to show it to other people. I user the "pre" tag, but I get too many new rows. It is because serendipity replaces all new rows in my post with br tag or whatever.
YL
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: publishing programming code
Hi!
The nl2br plugin does that. Since serendipity 1.2 you can configure that event plugin to exclude certain html tags, like <pre>, if you want.
Regards,
Garvin
The nl2br plugin does that. Since serendipity 1.2 you can configure that event plugin to exclude certain html tags, like <pre>, if you want.
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/