Use pretty-pgp.js
to pretty-print an OpenPGP key. The script will scan the DOM and re-render any ASCII armored OpenPGP keys it finds. In particular, if the key contains an image attribute then the body of the key will be colored such as to render the image as ASCII art. Here's my key page as an example.
<script src="pretty-pgp.js"></script>
<div class="pretty-pgp-key">
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)
...
-----END PGP PUBLIC KEY BLOCK-----
</div>
With thanks to the following: