Skip to content

Instantly share code, notes, and snippets.

@Richienb
Created May 22, 2018 04:19
Show Gist options
  • Save Richienb/25ae85dba5a462a43d0960f499d9d62a to your computer and use it in GitHub Desktop.
Save Richienb/25ae85dba5a462a43d0960f499d9d62a to your computer and use it in GitHub Desktop.
Google Code Prettify
<pre class="prettyprint">
print("Hello World")
def yesorno():
from random import randint as randnum
if randnum(1, 2) == 1:
return "yes"
else:
return "no"
print(yesorno())
</pre>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?lang=css&amp;skin=desert"></script>
.prettyprint{
margin: 0;
padding: 10px;
border-radius: 10px;
}
<link href="https://github.com/google/code-prettify/blob/master/styles/sunburst.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment