Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Syntax Highlighting Test

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.


This post first appeared on Homunculus, please read the originial post: here

Share the post

Syntax Highlighting Test

×

Subscribe to Homunculus

Get updates delivered right to your inbox!

Thank you for your subscription

×