summaryrefslogtreecommitdiffstats
path: root/widgets/google_prettify
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-10-30 00:18:56 -0400
committerJesse Luehrs <doy@tozt.net>2013-10-30 00:18:56 -0400
commitbb0a4f4e126c05fc73d566986fd1612468f5be67 (patch)
treea3a712e0a27ea1fe41d3d6097326896afd2f53f5 /widgets/google_prettify
downloadblog.tozt.net-bb0a4f4e126c05fc73d566986fd1612468f5be67.tar.gz
blog.tozt.net-bb0a4f4e126c05fc73d566986fd1612468f5be67.zip
initial commit
Diffstat (limited to 'widgets/google_prettify')
-rw-r--r--widgets/google_prettify/local.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/google_prettify/local.html b/widgets/google_prettify/local.html
new file mode 100644
index 0000000..4b6a219
--- /dev/null
+++ b/widgets/google_prettify/local.html
@@ -0,0 +1,11 @@
+---
+linenums : true
+---
+<script src="{{urls.base_url}}/assets/widgets/syntax/javascripts/prettify.js"></script>
+<script>
+ var pres = document.getElementsByTagName("pre");
+ for (var i=0; i < pres.length; ++i) {
+ pres[i].className = "prettyprint {{# this_config.linenums }}linenums{{/this_config.linenums}}";
+ }
+ prettyPrint();
+</script>