diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-10-30 00:18:56 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-10-30 00:18:56 -0400 |
commit | bb0a4f4e126c05fc73d566986fd1612468f5be67 (patch) | |
tree | a3a712e0a27ea1fe41d3d6097326896afd2f53f5 /widgets/google_prettify | |
download | blog.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.html | 11 |
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> |