2014-06-29

Testing prettyprint

I edited my Blogger template to include the following inside <head> tags: (h/t Pacini's Space)
<script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
</script>
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang=tex&skin=sunburst">
</script>
import cow
mycow = cow.create(name='cowbert')
output = []
for i in xrange(10):
    output.append(mycow.emit('moo'))

print ' '.join(output)
UPDATE 2016-08-03:

See https://github.com/google/code-prettify

1 comment: