a code example:

@requires_authorization
def somefunc(param1='', param2=0):
    r'''A docstring'''
    if param1 > param2: # interesting
        print ("Greater")
    return (param2 - param1 + 1 + 0b10l) or None

class SomeClass:
    pass

>>> message = '''interpreter
... prompt'''

Just to see if inline code in posts works well. I like it.

Uses highlight.js

Of course you can use any style you like ..

Download the css files from github

Comments


From: @pythononwheels

one more try.

@pythononwheels 2018-03-19 21:59:43

From: @pythononwheels

this works pretty fine. nice work!

@pythononwheels 2018-03-19 21:57:09

From: @tweetchaz_test

another comment test from this account. date is 18.2.2016

@tweetchaz_test 2016-02-18 15:58:16

From: @tweetchaz_test

a test comment for the inline code post. now the hash is hopefully right

@tweetchaz_test 2016-02-17 23:13:42