On Fri, Sep 11, 2009 at 11:41 AM, Pat LeSmithe <qed...@gmail.com> wrote: > > To colorize code blocks in trac descriptions and comments, try
Are you saying "Hey guys, here's a feature that is in trac already, but nobody seems to be using it. In order to use it, put #!python at the top of your {{{ pre-formats? Oh, by the way, you trac admins might consider installing some additional plugins." > > {{{ > #!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 > > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---