Tuesday, October 1, 2013

MDH test: Better Blogger

function syntaxHighlighting() {
  var n = 33;
  var s = "hi";
  • plain
  • emphasis
    • strong emphasis
  • inline code
  1. Numbered list
  2. Link
Block quote.
With some markdown.
If TeX Math support is enabled, this is the quadratic equation:
-b \pm \sqrt{b^2 - 4ac} \over 2a

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6
Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1
Here’s a horizontal rule:

code block
with no highlighting

The above was pasted. This is typed.
def hi(name):
    print('Hello %s' % name)

Rendering this separately, so I can use a different syntax highlighting theme. Code with a dark background don’t seem to show up properly. This is using the IR Black theme:
def bye(name):
    print('Farewell %s' % name)
Uh… That actually looks okay. Here’s Zenburn:
def creative_bankruptcy():
    print('Need to go to bed.')
Yeah, that looks oddly pale.

No comments:

Post a Comment