Skip to content

Commit

Permalink
Bug 246620 - Add line numbers to View Source for Firefox; r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
darktrojan committed Nov 2, 2011
1 parent 10e42c3 commit 561df56
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion layout/style/viewsource.css
Expand Up @@ -21,6 +21,7 @@
*
* Contributor(s):
* Blake Ross <BlakeR1234@aol.com>
* Geoff Lankow <geoff@darktrojan.net>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
Expand All @@ -47,6 +48,7 @@
font-family: -moz-fixed;
font-weight: normal;
white-space: pre;
counter-reset: line;
}
#viewsource.wrap {
white-space: pre-wrap;
Expand All @@ -56,7 +58,20 @@ pre {
font: inherit;
color: inherit;
white-space: inherit;
margin: 0;
margin: 0 0 0 5ch;
}
pre[id]:before,
span[id]:before {
content: counter(line) " ";
counter-increment: line;
-moz-user-select: none;
display: inline-block;
width: 5ch;
margin: 0 0 0 -5ch;
text-align: right;
color: #ccc;
font-weight: normal;
font-style: normal;
}
.start-tag {
color: purple;
Expand Down

0 comments on commit 561df56

Please sign in to comment.