Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2417)

Unified Diff: dart/site/try/line_numbers.css

Issue 225903003: Tokenize one line at a time. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Kasper's comments Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/site/try/index.html ('k') | dart/site/try/nossl.appcache » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/line_numbers.css
diff --git a/dart/site/try/line_numbers.css b/dart/site/try/line_numbers.css
new file mode 100644
index 0000000000000000000000000000000000000000..7578c9bcab9c0e5f80b97ed0ede077f7e214ba81
--- /dev/null
+++ b/dart/site/try/line_numbers.css
@@ -0,0 +1,26 @@
+/* Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+ * for details. All rights reserved. Use of this source code is governed by a
+ * BSD-style license that can be found in the LICENSE file.
+ */
+
+.mainEditorPane {
+ padding: 0px;
+}
+
+div {
+ counter-reset: dart-line-number;
+}
+
+.lineNumber {
+ padding-left: 3.5em;
+}
+
+.lineNumber:before {
+ counter-increment: dart-line-number;
+ content: counter(dart-line-number) " ";
+ position: absolute;
+ left: 0px;
+ width: 3em;
+ text-align: right;
+ background-color: lightgoldenrodyellow;
+}
« no previous file with comments | « dart/site/try/index.html ('k') | dart/site/try/nossl.appcache » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698