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:
See the library of Pygment lexers. Bitbucket supports the 'short name' or the 'mimetype' of anything in that library.