1 btokarchuk Aug 17, 2004 06:36
3 btokarchuk Aug 17, 2004 17:52
Hmmm,
well i just checked the <pre> tag again at [url=http://www.w3schools.com]w3schools[/url] and there is a property to set the maximum width of the pre tag, but i'm not all that confident that it's going to work how I want it to. ie i think the wrapping won't look all that good.
Oh well, i guess i'll have to play around with it and see.
4 captsolo Aug 17, 2004 18:29
Take a look at the code samples in [url=http://www.wasab.dk/morten/blog/archives/2004/05/21/foaf-output-from-wordpress#comment-82]this blog entry[/url]
Second code sample is longer than the width of the blog post area and you may see a scroll bar appear on the bottom. As I see, it is accomplished with CSS. The code is included in <pre class="code"> tags.
5 btokarchuk Aug 17, 2004 18:39
Awesome.
That is pretty slick indeed. That will address my problems with displaying code i think.
Thanks for that one.
:)
6 kiesow Aug 17, 2004 20:59
i just use
pre { overflow: auto;
width:95%;
}
7 user_925 Aug 19, 2004 01:47
Dunstan Orchard has an interesting and slick way to display code in posts. It would take some hacking to get working in b2evo, but I've been thinking about doing it.
http://www.1976design.com/blog/archive/2004/07/29/redesign-tag-transform/
(it's about half-way through)
8 isaac Aug 20, 2004 18:19
Mark,
The imgins and codeins plugins are on my todo list :)
Is it possible to define the attributes of the <pre> tag by using css? That's the only solution that comes to mind.
nate