Skip to content

Instantly share code, notes, and snippets.

@michaek
Created June 26, 2014 19:28
Show Gist options
  • Save michaek/972e76afadc12a0fbe42 to your computer and use it in GitHub Desktop.
Save michaek/972e76afadc12a0fbe42 to your computer and use it in GitHub Desktop.
A bucket for highlighted code
{
"name": "code",
"version": "0.0.0",
"authors": [
"Michael Hellein <michael.hellein@dealer.com>"
],
"license": "All Rights Reserved",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"highlightjs": "~8.0.0"
}
}
<!DOCTYPE html>
<html>
<head>
<title>CODES</title>
<link rel="stylesheet" type="text/css" href="bower_components/highlightjs/styles/googlecode.css">
<style type="text/css">
pre code {
font-family: Consolas;
}
</style>
</head>
<body>
<pre><code>
if (true) {
var foo = 'bar';
}
</code></pre>
<script type="text/javascript" src="bower_components/highlightjs/highlight.pack.js"></script>
<script type="text/javascript">
hljs.initHighlightingOnLoad();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment