Skip to content

Instantly share code, notes, and snippets.

@danyalzia
Created December 22, 2014 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danyalzia/49f8e249ba608e025be9 to your computer and use it in GitHub Desktop.
Save danyalzia/49f8e249ba608e025be9 to your computer and use it in GitHub Desktop.
Faster way to load Prettify
<!DOCTYPE html>
<head>
<title>
Prettify examples
</title>
<!-- For Syntax Highlighting -->
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang=css&skin=sunburst"></script>
</head>
<body>
<h1>Hello World Program</h1>
<h2>C++</h2>
<pre class="prettyprint">
<code>
#include &lt;iostream&gt;
int main() {
std::cout << "Hello, Prettify!\n";
}
</code>
</pre>
<h2>Python</h2>
<pre class="prettyprint">
<code>
print("Hello, World!")
</code>
</pre>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment