Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

You can highlight snippets of text on your Bitbucket wiki pages. We use the excellent Pygments library.

Here is an example of some Python code, formatted in the Bitbucket wiki:

Here is the syntax you will use to format the code as shown above:

{{{
#!python

def wiki_rocks(text):
	formatter = lambda t: "funky"+t
	return formatter(text)
}}}

See the library of Pygment lexers. Bitbucket supports the 'short name' or the 'mimetype' of anything in that library.

 

  • No labels