Project

General

Profile

Feature #32123 » 0001-Add-Highlighted-code-to-the-Wiki-Syntax-Quick-Refere.patch

Go MAEDA, 2019-09-25 18:03

View differences:

public/help/en/wiki_syntax_markdown.html
23 23
</pre>
24 24
</td></tr>
25 25

  
26
<tr><th colspan="3">Highlighted code</th></tr>
27
<tr><th><img src="../../images/jstoolbar/bt_precode.png" style="border: 1px solid #bbb;" alt="Preformatted text" /></th><td>``` ruby<br />3.times do<br />&nbsp;&nbsp;puts 'Hello'<br />end<br />```</td><td>
28
<pre><code class="ruby syntaxhl"><span class="mi">3</span><span class="p">.</span><span class="nf">times</span> <span class="k">do</span>
29
  <span class="nb">puts</span> <span class="s1">'Hello'</span>
30
<span class="k">end</span>
31
</code></pre>
32
</td></tr>
33

  
26 34
<tr><th colspan="3">Lists</th></tr>
27 35
<tr><th><img src="../../images/jstoolbar/bt_ul.png" style="border: 1px solid #bbb;" alt="Unordered list" /></th><td>* Item 1<br />&nbsp;&nbsp;* Sub<br />* Item 2</td><td><ul><li>Item 1<ul><li>Sub</li></ul></li><li>Item 2</li></ul></td></tr>
28 36
<tr><th><img src="../../images/jstoolbar/bt_ol.png" style="border: 1px solid #bbb;" alt="Ordered list" /></th><td>1. Item 1<br />&nbsp;&nbsp;&nbsp;1. Sub<br />2. Item 2</td><td><ol><li>Item 1<ol><li>Sub</li></ol></li><li>Item 2</li></ol></td></tr>
public/help/en/wiki_syntax_textile.html
24 24
</pre>
25 25
</td></tr>
26 26

  
27
<tr><th colspan="3">Highlighted code</th></tr>
28
<tr><th><img src="../../images/jstoolbar/bt_precode.png" style="border: 1px solid #bbb;" alt="Preformatted text" /></th><td>&lt;pre&gt;&lt;code class="ruby"&gt;<br />3.times do<br />&nbsp;&nbsp;puts 'Hello'<br />end<br />&lt;code&gt;&lt;/pre&gt;</td><td>
29
<pre><code class="ruby syntaxhl"><span class="mi">3</span><span class="p">.</span><span class="nf">times</span> <span class="k">do</span>
30
  <span class="nb">puts</span> <span class="s1">'Hello'</span>
31
<span class="k">end</span>
32
</code></pre>
33
</td></tr>
34

  
27 35
<tr><th colspan="3">Lists</th></tr>
28 36
<tr><th><img src="../../images/jstoolbar/bt_ul.png" style="border: 1px solid #bbb;" alt="Unordered list" /></th><td>* Item 1<br />** Sub<br />* Item 2</td><td><ul><li>Item 1<ul><li>Sub</li></ul></li><li>Item 2</li></ul></td></tr>
29 37
<tr><th><img src="../../images/jstoolbar/bt_ol.png" style="border: 1px solid #bbb;" alt="Ordered list" /></th><td># Item 1<br />## Sub<br /># Item 2</td><td><ol><li>Item 1<ol><li>Sub</li></ol></li><li>Item 2</li></ol></td></tr>
public/help/wiki_syntax.css
8 8
table td h3 { font-size: 1.2em; text-align: left; }
9 9

  
10 10
table.sample { border-collapse: collapse; border-spacing: 0; margin: 4px; }
11
table.sample th, table.sample td { border: solid 1px #bbb; padding: 4px; height: 1em; }
11
table.sample th, table.sample td { border: solid 1px #bbb; padding: 4px; height: 1em; }
12

  
13
.syntaxhl .mi { color: #0000DD; font-weight: bold }
14
.syntaxhl .nf { color: #0066BB; font-weight: bold }
15
.syntaxhl .k { color: #008800; font-weight: bold }
16
.syntaxhl .nb { color: #007020 }
17
.syntaxhl .s1 { background-color: #fff0f0 }
(2-2/3)