Feature #24681 » 0002-Update-help-for-Rouge-syntax-highlighter.patch
public/help/ar/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/ar/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/az/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/az/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/bg/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/bg/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/bs/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/bs/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/ca/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/ca/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/cs/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
293 | 291 | |
294 | 292 |
<h2><a name="13" class="wiki-page"></a>Zvýrazňování kódu</h2> |
295 | 293 | |
296 |
<p>Výchozí zvýrazňování kódu zavisí na <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, což je rychlá zvýrazňovací knihovna napsaná v Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
294 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
295 | ||
296 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
297 | 297 | |
298 | 298 |
<p>Kód můžete na stránce zvýraznit pomocí následující syntaxe (note that the language name or alias is case-insensitive):</p> |
299 | 299 | |
... | ... | |
305 | 305 | |
306 | 306 |
<p>Např:</p> |
307 | 307 | |
308 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
309 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
310 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
311 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
312 |
<span class="keyword">end</span>
|
|
313 | ||
314 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
315 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
316 |
<span class="keyword">end</span>
|
|
317 |
<span class="keyword">end</span></span></code>
|
|
318 |
</pre> |
|
308 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
309 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
310 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
311 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
312 |
<span class="k">end</span> |
|
313 | ||
314 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
315 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
316 |
<span class="k">end</span> |
|
317 |
<span class="k">end</span>
|
|
318 |
</code></pre>
|
|
319 | 319 |
</body> |
320 | 320 |
</html> |
public/help/cs/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Zvýrazňování kódu</h2> |
303 | 301 | |
304 |
<p>Výchozí zvýrazňování kódu zavisí na <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, což je rychlá zvýrazňovací knihovna napsaná v Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Např.:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/da/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/da/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/de/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/de/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/el/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/el/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
319 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
320 |
<span class="keyword">end</span>
|
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
324 |
<span class="keyword">end</span>
|
|
325 |
<span class="keyword">end</span></span></code>
|
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
324 |
<span class="k">end</span> |
|
325 |
<span class="k">end</span>
|
|
326 |
</code></pre>
|
|
327 | 327 |
</body> |
328 | 328 |
</html> |
public/help/en-gb/wiki_syntax_detailed_markdown.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
297 | 295 | |
298 | 296 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
299 | 297 | |
300 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
298 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
299 | ||
300 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
301 | 301 | |
302 | 302 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
303 | 303 | |
... | ... | |
309 | 309 | |
310 | 310 |
<p>Example:</p> |
311 | 311 | |
312 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span>
|
|
313 |
<span class="keyword">class</span> <span class="class">Greeter</span>
|
|
314 |
<span class="keyword">def</span> <span class="function">initialize</span>(name)
|
|
315 |
<span class="instance-variable">@name</span> = name.capitalize
|
|
316 |
<span class="keyword">end</span>
|
|
317 | ||
318 |
<span class="keyword">def</span> <span class="function">salute</span>
|
|
319 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span>
|
|
320 |
<span class="keyword">end</span>
|
|
321 |
<span class="keyword">end</span></span></code>
|
|
322 |
</pre> |
|
312 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span>
|
|
313 |
<span class="k">class</span> <span class="nc">Greeter</span>
|
|
314 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|
315 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span>
|
|
316 |
<span class="k">end</span> |
|
317 | ||
318 |
<span class="k">def</span> <span class="nf">salute</span>
|
|
319 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span>
|
|
320 |
<span class="k">end</span> |
|
321 |
<span class="k">end</span>
|
|
322 |
</code></pre>
|
|
323 | 323 |
</body> |
324 | 324 |
</html> |
public/help/en-gb/wiki_syntax_detailed_textile.html | ||
---|---|---|
18 | 18 |
overflow-y: hidden; |
19 | 19 |
} |
20 | 20 |
a.new { color: #b73535; } |
21 | ||
22 |
.syntaxhl .class { color:#258; font-weight:bold } |
|
23 |
.syntaxhl .comment { color:#385; } |
|
24 |
.syntaxhl .delimiter { color:black } |
|
25 |
.syntaxhl .function { color:#06B; font-weight:bold } |
|
26 |
.syntaxhl .inline { background-color: hsla(0,0%,0%,0.07); color: black } |
|
27 |
.syntaxhl .inline-delimiter { font-weight: bold; color: #666 } |
|
28 |
.syntaxhl .instance-variable { color:#33B } |
|
29 |
.syntaxhl .keyword { color:#939; font-weight:bold } |
|
30 |
.syntaxhl .string .content { color: #46a } |
|
31 |
.syntaxhl .string .delimiter { color:#46a } |
|
21 |
.syntaxhl .c1 { color: #888888 } |
|
22 |
.syntaxhl .k { color: #008800; font-weight: bold } |
|
23 |
.syntaxhl .nc { color: #BB0066; font-weight: bold } |
|
24 |
.syntaxhl .nf { color: #0066BB; font-weight: bold } |
|
25 |
.syntaxhl .nb { color: #007020 } |
|
26 |
.syntaxhl .vi { color: #3333BB } |
|
27 |
.syntaxhl .o { color: #333333 } |
|
28 |
.syntaxhl .s2 { background-color: #fff0f0 } |
|
29 |
.syntaxhl .si { background-color: #eeeeee } |
|
32 | 30 |
</style> |
33 | 31 |
</head> |
34 | 32 | |
... | ... | |
301 | 299 | |
302 | 300 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2> |
303 | 301 | |
304 |
<p>Default code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml and yaml (yml) languages, where the names inside parentheses are aliases.</p> |
|
302 |
<p>Default code highlightment relies on <a href="http://rouge.jneen.net/" class="external">Rouge</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, clojure, cpp (c++, cplusplus), css, delphi (pascal), diff (patch), erb (eruby, rhtml), go, groovy, haml, html (xhtml), java, javascript (ecmascript, ecma_script, java_script, js), json, lua, php, python, ruby (irb), sass, sql, taskpaper, text (plain, plaintext), xml, yaml (yml) plus more than 100+ languages, where the names inside parentheses are aliases.</p> |
|
303 | ||
304 |
<p>A list of all supported languages can be found at <a href="https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers" class="external">https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers</a>.</p> |
|
305 | 305 | |
306 | 306 |
<p>You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):</p> |
307 | 307 | |
... | ... | |
313 | 313 | |
314 | 314 |
<p>Example:</p> |
315 | 315 | |
316 |
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="comment"># The Greeter class</span> |
|
317 |
<span class="keyword">class</span> <span class="class">Greeter</span> |
|
318 |
<span class="keyword">def</span> <span class="function">initialize</span>(name) |
|
319 |
<span class="instance-variable">@name</span> = name.capitalize |
|
320 |
<span class="keyword">end</span> |
|
321 | ||
322 |
<span class="keyword">def</span> <span class="function">salute</span> |
|
323 |
puts <span class="string"><span class="delimiter">"</span><span class="content">Hello </span><span class="inline"><span class="inline-delimiter">#{</span><span class="instance-variable">@name</span><span class="inline-delimiter">}</span></span><span class="content">!</span><span class="delimiter">"</span></span> |
|
324 |
<span class="keyword">end</span> |
|
325 |
<span class="keyword">end</span></span></code> |
|
326 |
</pre> |
|
316 |
<pre><code class="ruby syntaxhl"><span class="c1"># The Greeter class</span> |
|
317 |
<span class="k">class</span> <span class="nc">Greeter</span> |
|
318 |
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span> |
|
319 |
<span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span><span class="p">.</span><span class="nf">capitalize</span> |
|
320 |
<span class="k">end</span> |
|
321 | ||
322 |
<span class="k">def</span> <span class="nf">salute</span> |
|
323 |
<span class="nb">puts</span> <span class="s2">"Hello </span><span class="si">#{</span><span class="vi">@name</span><span class="si">}</span><span class="s2">!"</span> |