Add class line to span-tags for line-numbers

Update css
This commit is contained in:
Kienz 2013-08-18 10:33:53 +02:00
parent b4029d0559
commit f7b6bd6988
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
numbered = source.innerHTML.split('\n');
numbered = numbered.map(function(item) {
counter++;
return '<span id="line' + counter + '"></span>' + item;
return '<span id="line' + counter + '" class="line"></span>' + item;
});
source.innerHTML = numbered.join('\n');

View File

@ -242,7 +242,7 @@ h6
border-left: 3px #ddd solid;
}
.prettyprint code span
.prettyprint code span.line
{
display: inline-block;
}