Introduction
Introduction Statistics Contact Development Disclaimer Help
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@&@\&amp;@g' -e 's@>@\&gt;@g' -e 's@<@\&lt;@g' | nl -w 4 -s '…
- printf '%s' '</code></pre>'
-}
-
pageheader() {
# prefix page title with site title, make sure its neatly formatted.
if [ "${title}" = "" ]; then
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.