diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-06-13 21:27:14 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-08-16 16:31:28 +0200 |
commit | 71273d9477b88cca86e6724491c1ea337ee96f05 (patch) | |
tree | b5b0d73085775d9aacae2871a0d57faa99ea72ca /application/libraries/contrib/process-geshi-css.pl | |
parent | 789ffb00e6d25af4409d26dce04d211e365f2d58 (diff) |
switch to pygments
- faster than geshi
- easier to modify the css because there is only one
- geshi upstream seems pretty dead
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/contrib/process-geshi-css.pl')
-rw-r--r-- | application/libraries/contrib/process-geshi-css.pl | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/application/libraries/contrib/process-geshi-css.pl b/application/libraries/contrib/process-geshi-css.pl deleted file mode 100644 index dbf76c294..000000000 --- a/application/libraries/contrib/process-geshi-css.pl +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/perl -use warnings; -use strict; - -open INPUT, "<", "geshi.css" or die $!; - -my $last=""; - -while (<INPUT>) { - my $line = $_; - my ($lang, $rest) = split / /; - $lang =~ s/\.//; - $lang =~ s/^_+//; - chomp $lang; - - next if ($lang eq ""); - - if ($lang ne $last) { - $last = $lang; - unlink "paste-$lang.css"; - print STDERR "processing $lang\n"; - } - open OUT, ">>", "paste-$lang.css"; - print OUT "$line"; - close OUT; -} |