News for hackers. Stuff that matters.
Re:Reasons to Learn Markdown by kylebragger on Wednesday April 18, 2012 @09:19PM (#3860995)
Off the top of my head I'm not sure if this is part of Markdown proper (or maybe GitHub's "flavor") but you can do fenced code blocks, like so:

~~~

// your code // goes here // and here

~~~

Re:Reasons to Learn Markdown by AncientPC on Wednesday April 18, 2012 @10:32PM (#3861145)
That's GitHub flavor. You can also use back ticks and specify syntax highlighting, e.g:

    ```python

    from functools import partial

    def foo(a,b,i):
        if i >= a and i <= b:
            return i**2
        else:
            return 0

    print reduce(lambda x,y: x+y,map(partial(foo,3,7),xrange(1,10)))
    ```