Excerpts from Ben Giddings's mail of 15 Aug 2005 (EDT): > How do I post an entry that contains copy-and-pasted code? Say it's > even (ick) Python code, where I have to keep the indentation exactly > as-is? How do I work the combination of YAML and Textile to enable me > to paste something exactly as-is, and have it appear that way in the > web page?
You can either wrap it in a <pre> or you can simply indent the entire codeblock with a few spaces. (Another neat trick I just learned is that RedCloth turns @hello@ into <code>hello</code>.) > Also, how do I make sure that the text *stays* that way when I want to edit > that entry? In other words, if the solution involves > > content: | > do something here... > > How do I make sure that the pipe character appears after the content, rather > than being translated to say: > > content: > > do something here... I can't really speak to this as I've never used |. I've seen YAML rewrite >'s as quoted strings when they're really small, which is kinda irritating. Maybe it's a similar thing---under what circumstances does this happen? -- William <[EMAIL PROTECTED]> _______________________________________________ Hobix-is-the-way mailing list [email protected] http://rubyforge.org/mailman/listinfo/hobix-is-the-way
