summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-08-16 16:24:14 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-08-16 16:31:32 +0200
commitca012157e0cbdab743a94ece0a77c6c3921070ef (patch)
treec52cfd3a77362b9fbde72bc601394afe6b6adfb4
parent71273d9477b88cca86e6724491c1ea337ee96f05 (diff)
remove 'class="no"' from highlit html
No need to repeat that for every line. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/controllers/file.php2
-rw-r--r--data/paste.css2
2 files changed, 3 insertions, 1 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 3b9a8f9b4..a9e4406bc 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -165,7 +165,7 @@ class File extends CI_Controller {
} else {
echo '<td class="numbers"><pre>';
// generate line numbers (links)
- passthru('perl -ne \'print "<a href=\"#n$.\" class=\"no\" id=\"n$.\">$.</a>\n"\' '.escapeshellarg($file));
+ passthru('perl -ne \'print "<a href=\"#n$.\" id=\"n$.\">$.</a>\n"\' '.escapeshellarg($file));
echo '</pre></td><td class="code">'."\n";
passthru('pygmentize -F codetagify -O encoding=utf-8 -l '.escapeshellarg($mode).' -f html '.escapeshellarg($file));
}
diff --git a/data/paste.css b/data/paste.css
index 6a9e60eda..c8f165a75 100644
--- a/data/paste.css
+++ b/data/paste.css
@@ -9,11 +9,13 @@ body {
padding-right:4px;
left:0;
color: gray;
+ text-decoration: none;
}
.numbers a:target {
background: yellow;
}
+
div#highlight_line {
background: yellow;
display: inline;