code blocks in blog posts
rand-kzPqTZqrtG+O+QkcXTtFxKWz8mPg4b/[email protected] Sat, 27 Mar 2004 12:33:02 -0700
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Not sure if this is a generic html question (until recently, I haven't found the need to do much raw html, so I'm not very experienced with it yet), or a cheetah question, or if there's a PyDS mechanism that helps. If it's just basic html, feel free to redirect me. I posted a blog entry that had a code block, and in the code block was some html in quotes (the code builds an html string). I had two problems: 1. After finally settling on <pre> to simplify some of the formatting, there was one thing about <pre> I didn't like, and that is that it seems to have a fixed width for lines entered. That is, one of the code lines was quite long, and it didn't wrap when the rendered form was narrowed. How do people usually deal with inline code and wrapping? I ended up manually making the entered code be multi-line with '\' at the end of partial lines. 2. I had to manually replace the '<' and '>' with < and > every time I edited the post. I thought I recalled seeing mention on this list of a cheetah directive called code-block, but couldn't find enough on it to figure it out. Any pointers? Finally, I saw mention of something called SilverCity a while back, but it wasn't obvious what I needed to do to use it. Do I need to install it separately? Thx, Rand