source: syntax highlighting in global stylesheet
[sheet.git] / base.css
index 76f5929a40b7c2484c64a97143b2d589a0dff005..50e12f2998a0fbaf952bd49ad5ed123ce5033656 100644 (file)
--- a/base.css
+++ b/base.css
@@ -69,6 +69,14 @@ ul {
        list-style: none;
 }
 
+#source {
+       text-align: center;
+}
+#source pre {
+       display: inline-block;
+       text-align: left;
+}
+
 /* "keyboard" (list of keys) */
 
 ul#rows {margin-top: -5ex} /* top (esc) row fits besides header */
@@ -324,6 +332,17 @@ td.c-aa       {background: #E3E8FF}
 td.c-sa       {background: #DFF}
 td.c-na       {background: #DFD}
 
+/* code syntax */
+.sy-comment    { color: #888 }
+.sy-constant   { color: #008 }
+.sy-type,
+.sy-identifier { color: #804 }
+.sy-statement  { }
+.sy-preProc    { }
+.sy-special    { color: #408 }
+.sy-error      { font-weight: bold; background-color: #F00; color: #FFF }
+.sy-todo       { background-color: #FF0 }
+
 /* hover effects */
 td.di-d,
 td.X:hover {cursor: help}