To colorize code blocks in trac descriptions and comments, try {{{ #!python from random import randrange
def qsort(A): if A == []: return [] i = randrange(len(A)) A_lo = qsort([x for x in (A[:i] + A[i + 1 :]) if x < A[i]]) A_hi = qsort([x for x in (A[:i] + A[i + 1 :]) if x >= A[i]]) return A_lo + [A[i]] + A_hi }}} Other formats: c, cpp, js, text/html We can include non-Sphinx reST directives, too. For examples and more information, see http://trac.sagemath.org/sage_trac/wiki/WikiProcessors http://trac.sagemath.org/sage_trac/wiki/WikiRestructuredText The wiki has similar features: http://wiki.sagemath.org/HelpOnMoinWikiSyntax#Parsers http://wiki.sagemath.org/HelpOnParsers/ReStructuredText --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---