remove code_highlight helper function - static-site-scripts - static site gener… | |
git clone git://git.codemadness.org/static-site-scripts | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a6b652c8cb43de366300bbcf3c004278bcea8a8e | |
parent a2cc7c5e5a5cd3f1e2b2d3727b7f07cee3b0872e | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 2 Mar 2014 12:12:04 +0100 | |
remove code_highlight helper function | |
Signed-off-by: Hiltjo Posthuma <[email protected]> | |
Diffstat: | |
M generate.sh | 7 ------- | |
1 file changed, 0 insertions(+), 7 deletions(-) | |
--- | |
diff --git a/generate.sh b/generate.sh | |
@@ -48,13 +48,6 @@ makeid() { | |
-e 's@[-]*$@@g' -e 's@^[-]*@@g' | |
} | |
-# escape some HTML entities, prefix code with linenumbers. | |
-code_highlight() { | |
- printf '%s' '<pre><code>' | |
- sed -e 's@&@\&@g' -e 's@>@\>@g' -e 's@<@\<@g' | nl -w 4 -s '… | |
- printf '%s' '</code></pre>' | |
-} | |
- | |
pageheader() { | |
# prefix page title with site title, make sure its neatly formatted. | |
if [ "${title}" = "" ]; then |