Mon Dec 1 10:32:01 EST 2008

Code in nanoblogger entries

I just spent WAY to long figuring out how to format my last post. Here are some hints regarding how to format code blocks in nanoblogger entries when you are using the markdown plugin.

  1. Inline code can be encapsulated in back-ticks
  2. Blocks of code should be placed in <pre> </pre> tags, NOT <code></code> tags.
  3. IF there are no spaces, a block of code can be inserted by indenting each line. But if you've got a blank line, markdown will try to insert paragraph tags in side and tidy will balk.

Posted by vschmidt | Permanent link | File under: nanoblogger-help