This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/chemistry-site.git

commit 298ed642926df0997f8491c79f0c8a310663220d
Author: Dave Fisher <[email protected]>
AuthorDate: Mon Jun 14 14:19:06 2021 -0700

    adding code highlighting
---
 content/resources/xcode.css      | 101 +++++++++++++++++++++++++++++++++++++++
 theme/apache/templates/base.html |   3 ++
 2 files changed, 104 insertions(+)

diff --git a/content/resources/xcode.css b/content/resources/xcode.css
new file mode 100644
index 0000000..a334720
--- /dev/null
+++ b/content/resources/xcode.css
@@ -0,0 +1,101 @@
+/*
+
+XCode style (c) Angel Garcia <[email protected]>
+
+*/
+
+.hljs {
+  background: #f0f0f0;
+  color: black;
+}
+
+/* Gray DOCTYPE selectors like WebKit */
+.xml .hljs-meta {
+  color: #c0c0c0;
+}
+
+.hljs-comment,
+.hljs-quote {
+  color: #007400;
+}
+
+.hljs-tag,
+.hljs-attribute,
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-name {
+  color: #aa0d91;
+}
+
+.hljs-variable,
+.hljs-template-variable {
+  color: #3F6E74;
+}
+
+.hljs-code,
+.hljs-string,
+.hljs-meta .hljs-string {
+  color: #c41a16;
+}
+
+.hljs-regexp,
+.hljs-link {
+  color: #0E0EFF;
+}
+
+.hljs-title,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-number {
+  color: #1c00cf;
+}
+
+.hljs-section,
+.hljs-meta {
+  color: #643820;
+}
+
+
+.hljs-title.class_,
+.hljs-class .hljs-title,
+.hljs-type,
+.hljs-built_in,
+.hljs-params {
+  color: #5c2699;
+}
+
+.hljs-attr {
+  color: #836C28;
+}
+
+.hljs-subst {
+  color: #000;
+}
+
+.hljs-formula {
+  background-color: #eee;
+  font-style: italic;
+}
+
+.hljs-addition {
+  background-color: #baeeba;
+}
+
+.hljs-deletion {
+  background-color: #ffc8bd;
+}
+
+.hljs-selector-id,
+.hljs-selector-class {
+  color: #9b703f;
+}
+
+.hljs-doctag,
+.hljs-strong {
+  font-weight: bold;
+}
+
+.hljs-emphasis {
+  font-style: italic;
+}
diff --git a/theme/apache/templates/base.html b/theme/apache/templates/base.html
index 3e28d9e..b95e4ec 100644
--- a/theme/apache/templates/base.html
+++ b/theme/apache/templates/base.html
@@ -235,5 +235,8 @@ dt:hover > .headerlink, p:hover > .headerlink, td:hover > 
.headerlink, h1:hover
     </tr>
   </table>
   <script type="text/javascript" src="/resources/retina.min.js"></script>
+  <link rel="stylesheet" href="/resources/xcode.css">
+  <script 
src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
+  <script>hljs.highlightAll();</script>
 </body>
 </html>

Reply via email to