Straightforward quicksort algorithm taken from wikipedia to test Syntax Highlighting within blogger:
def qsort1(lst):
if len(lst) <= 1:
return lst
pivot = lst.pop(0)
greater_eq = qsort1([i for i in lst if i >= pivot])
lesser = qsort1([i for i in lst if i < pivot])
return lesser + [pivot] + greater_eq
The idea has been borrowed from this blog post and SyntaxHighlighter can be found here.