com web/pres2: Fix syntax highlighting: github.css reveal_tem plate.php
| From: | Rasmus Lerdorf | Date: | Tue, 11 Mar 2014 17:39:23 +0000 |
| Subject: | com web/pres2: Fix syntax highlighting: github.css reveal_tem plate.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1958@lists.php.net to get a copy of this message | ||
Commit: 764319cc67153c4a5851b2b07be3712c97074f97
Author: Rasmus Lerdorf <rasmus@php.net> Tue, 11 Mar 2014 10:39:23 -0700
Parents: 6b5d530396e27d0336ae6a5ae8a6fb9677a5f5ee
Branches: master
Link: http://git.php.net/?p=web/pres2.git;a=commitdiff;h=764319cc67153c4a5851b2b07be3712c97074f97
Log:
Fix syntax highlighting
Changed paths:
A github.css
M reveal_template.php
Diff:
diff --git a/github.css b/github.css
new file mode 100644
index 0000000..266a3d5
--- /dev/null
+++ b/github.css
@@ -0,0 +1,133 @@
+/*
+
+github.com style (c) Vasily Polovnyov <vast@whiteants.net>
+
+*/
+
+pre code {
+ display: block; padding: 0.5em;
+ color: #000;
+ background: #f8f8ff
+}
+
+pre .comment,
+pre .template_comment,
+pre .diff .header,
+pre .javadoc {
+ color: #998;
+ font-style: italic
+}
+
+pre .keyword,
+pre .css .rule .keyword,
+pre .winutils,
+pre .javascript .title,
+pre .lisp .title,
+pre .nginx .title,
+pre .subst,
+pre .request,
+pre .status {
+ color: #000;
+ font-weight: bold
+}
+
+pre .number,
+pre .hexcolor {
+ color: #40a070
+}
+
+pre .string,
+pre .tag .value,
+pre .phpdoc,
+pre .tex .formula {
+ color: #d14
+}
+
+pre .title,
+pre .id {
+ color: #900;
+ font-weight: bold
+}
+
+pre .javascript .title,
+pre .lisp .title,
+pre .subst {
+ font-weight: normal
+}
+
+pre .class .title,
+pre .haskell .type,
+pre .vhdl .literal,
+pre .tex .command {
+ color: #458;
+ font-weight: bold
+}
+
+pre .tag,
+pre .tag .title,
+pre .rules .property,
+pre .django .tag .keyword {
+ color: #000080;
+ font-weight: normal
+}
+
+pre .attribute,
+pre .variable,
+pre .instancevar,
+pre .lisp .body {
+ color: #008080
+}
+
+pre .regexp {
+ color: #009926
+}
+
+pre .class {
+ color: #458;
+ font-weight: bold
+}
+
+pre .symbol,
+pre .ruby .symbol ..string,
+pre .ruby .symbol .keyword,
+pre .ruby .symbol .keymethods,
+pre .lisp .keyword,
+pre .tex .special,
+pre .input_number {
+ color: #990073
+}
+
+pre .builtin,
+pre .built_in,
+pre .lisp .title {
+ color: #0086b3
+}
+
+pre .preprocessor,
+pre .pi,
+pre ..doctype,
+pre .shebang,
+pre .cdata {
+ color: #999;
+ font-weight: bold
+}
+
+pre .deletion {
+ background: #fdd
+}
+
+pre ..addition {
+ background: #dfd
+}
+
+pre .diff .change {
+ background: #0086b3
+}
+
+pre .chunk {
+ color: #aaa
+}
+
+pre .tex .formula {
+ opacity: 0.5;
+}
diff --git a/reveal_template.php b/reveal_template.php
index 5ca6e32..54507d6 100644
--- a/reveal_template.php
+++ b/reveal_template.php
@@ -18,7 +18,7 @@
<link rel="stylesheet" href="/samdark.css" id="theme">
<!-- For syntax highlighting -->
- <link rel="stylesheet" href="lib/css/zenburn.css">
+ <link rel="stylesheet" href="/github.css">
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>