X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fcode2html;fp=usr_bin%2Fcode2html;h=0000000000000000000000000000000000000000;hb=c08b156abb0b2b1b1335cb1ada0c08758553238b;hp=bf2402e300351e05317168020c405ba6f5c2ad22;hpb=b0c3e5ff760f99d6ff7721852bc1a0d73c5ea201;p=grml-scripts.git diff --git a/usr_bin/code2html b/usr_bin/code2html deleted file mode 100755 index bf2402e..0000000 --- a/usr_bin/code2html +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/perl -p -# -# code2html - convert code to html for posting to slashdot -# -# tchrist@perl.com -# Sunday, December 19th, 1999 - -BEGIN { print "\n" } # and the spirit of awk... - -# first kill all the tabs -1 while s{ \t + } - { " " x (length($&)*8 - length($`)%8) }ex; - -# then the four standard naughty bits -s/&/&/g; # must remember to do this one first! -s//>/g; # don't close too early -s/"/"/g; # only in embedded tags, i guess - -# make lines break where they should -s/^\s*$/

/ || s/$/
/; - -# make sure spaces aren't squishticated so we -# can do indentation and properly align comments -s/ /  /g; - -END { print "
\n" } # ...shall be with us always