From 82bc0b48a9c9e29c82fdd7cef684e42b5a6de3c0 Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Thu, 26 Sep 2019 00:55:35 +0900 Subject: [PATCH] Add "Highlighted code" to the Wiki Syntax Quick Reference. --- public/help/en/wiki_syntax_markdown.html | 8 ++++++++ public/help/en/wiki_syntax_textile.html | 8 ++++++++ public/help/wiki_syntax.css | 8 +++++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/public/help/en/wiki_syntax_markdown.html b/public/help/en/wiki_syntax_markdown.html index 06d222b1d..4812ff0f1 100644 --- a/public/help/en/wiki_syntax_markdown.html +++ b/public/help/en/wiki_syntax_markdown.html @@ -23,6 +23,14 @@ +Highlighted code +Preformatted text``` ruby
3.times do
  puts 'Hello'
end
``` +
3.times do
+  puts 'Hello'
+end
+
+ + Lists Unordered list* Item 1
  * Sub
* Item 2 Ordered list1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
diff --git a/public/help/en/wiki_syntax_textile.html b/public/help/en/wiki_syntax_textile.html index 4727f6d33..cb1106aa1 100644 --- a/public/help/en/wiki_syntax_textile.html +++ b/public/help/en/wiki_syntax_textile.html @@ -24,6 +24,14 @@ +Highlighted code +Preformatted text<pre><code class="ruby">
3.times do
  puts 'Hello'
end
<code></pre> +
3.times do
+  puts 'Hello'
+end
+
+ + Lists Unordered list* Item 1
** Sub
* Item 2 Ordered list# Item 1
## Sub
# Item 2
  1. Item 1
    1. Sub
  2. Item 2
diff --git a/public/help/wiki_syntax.css b/public/help/wiki_syntax.css index 4430ea006..ca2c04f76 100644 --- a/public/help/wiki_syntax.css +++ b/public/help/wiki_syntax.css @@ -8,4 +8,10 @@ table td h2 { font-size: 1.4em; text-align: left; } table td h3 { font-size: 1.2em; text-align: left; } table.sample { border-collapse: collapse; border-spacing: 0; margin: 4px; } -table.sample th, table.sample td { border: solid 1px #bbb; padding: 4px; height: 1em; } \ No newline at end of file +table.sample th, table.sample td { border: solid 1px #bbb; padding: 4px; height: 1em; } + +.syntaxhl .mi { color: #0000DD; font-weight: bold } +.syntaxhl .nf { color: #0066BB; font-weight: bold } +.syntaxhl .k { color: #008800; font-weight: bold } +.syntaxhl .nb { color: #007020 } +.syntaxhl .s1 { background-color: #fff0f0 } -- 2.21.0 (Apple Git-122)