diff options
author | Etienne Massip <etienne.massip@gmail.com> | 2011-10-08 13:34:30 +0000 |
---|---|---|
committer | Etienne Massip <etienne.massip@gmail.com> | 2011-10-08 13:34:30 +0000 |
commit | d1efb4f148330f29a297ed5da4cb90b9b6c9c40e (patch) | |
tree | 2f620f5ba410e6c815418e88f472e04988ec89e8 /public/help | |
parent | 6ebb5e834cebeec9a5ead42d245b35dde55b3c76 (diff) | |
download | redmine-d1efb4f148330f29a297ed5da4cb90b9b6c9c40e.tar.gz redmine-d1efb4f148330f29a297ed5da4cb90b9b6c9c40e.zip |
Update CodeRay version to 1.0 final (#4264).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7618 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/help')
-rw-r--r-- | public/help/wiki_syntax_detailed.html | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/public/help/wiki_syntax_detailed.html b/public/help/wiki_syntax_detailed.html index 6eaaf33ac..048edbd3a 100644 --- a/public/help/wiki_syntax_detailed.html +++ b/public/help/wiki_syntax_detailed.html @@ -18,20 +18,22 @@ } a.new { color: #b73535; } - .CodeRay .c { color:#666; } - - .CodeRay .cl { color:#B06; font-weight:bold } - .CodeRay .dl { color:black } - .CodeRay .fu { color:#06B; font-weight:bold } - - .CodeRay .il { background: #eee } - .CodeRay .il .idl { font-weight: bold; color: #888 } - - .CodeRay .iv { color:#33B } - .CodeRay .r { color:#080; font-weight:bold } - - .CodeRay .s { background-color:#fff0f0 } - .CodeRay .s .dl { color:#710 } + .syntaxhl .line-numbers { padding: 2px 4px 2px 4px; background-color: #eee; margin:0 } + .syntaxhl .comment { color:#666; } + + .syntaxhl .class { color:#B06; font-weight:bold } + .syntaxhl .delimiter { color:black } + .syntaxhl .function { color:#06B; font-weight:bold } + + .syntaxhl .inline { background: #eee } + .syntaxhl .inline .inline-delimiter { font-weight: bold; color: #888 } + + .syntaxhl .instance-variable { color:#33B } + .syntaxhl .reserved { color:#080; font-weight:bold } + + .syntaxhl .string { background-color:#fff0f0; color: #D20; } + .syntaxhl .string .delimiter { color:#710 } + </style> </head> @@ -242,7 +244,7 @@ To go live, all you need to add is a database and a web server. <h2><a name="13" class="wiki-page"></a>Code highlighting</h2> - <p>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, cpp, css, delphi, groovy, html, java, javascript, json, php, python, rhtml, ruby, scheme, sql, xml and yaml languages.</p> + <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, cpp, css, delphi, groovy, html, java, javascript, json, php, python, rhtml, ruby, scheme, sql, xml and yaml languages.</p> <p>You can highlight code in your wiki page using this syntax:</p> @@ -254,17 +256,16 @@ To go live, all you need to add is a database and a web server. <p>Example:</p> -<pre><code class="ruby CodeRay"><span class="no"> 1</span> <span class="c"># The Greeter class</span> -<span class="no"> 2</span> <span class="r">class</span> <span class="cl">Greeter</span> -<span class="no"> 3</span> <span class="r">def</span> <span class="fu">initialize</span>(name) -<span class="no"> 4</span> <span class="iv">@name</span> = name.capitalize -<span class="no"> 5</span> <span class="r">end</span> -<span class="no"> 6</span> -<span class="no"> 7</span> <span class="r">def</span> <span class="fu">salute</span> -<span class="no"> 8</span> puts <span class="s"><span class="dl">"</span><span class="k">Hello </span><span class="il"><span class="idl">#{</span><span class="iv">@name</span><span class="idl">}</span></span><span class="k">!</span><span class="dl">"</span></span> -<span class="no"> 9</span> <span class="r">end</span> -<span class="no"><strong>10</strong></span> <span class="r">end</span> -</code> +<pre><code class="ruby syntaxhl"><span class="line-numbers"> 1</span> <span class="comment"># The Greeter class</span> +<span class="line-numbers"> 2</span> <span class="reserved">class</span> <span class="class">Greeter</span> +<span class="line-numbers"> 3</span> <span class="reserved">def</span> <span class="function">initialize</span>(name) +<span class="line-numbers"> 4</span> <span class="instance-variable">@name</span> = name.capitalize +<span class="line-numbers"> 5</span> <span class="reserved">end</span> +<span class="line-numbers"> 6</span> +<span class="line-numbers"> 7</span> <span class="reserved">def</span> <span class="function">salute</span> +<span class="line-numbers"> 8</span> 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> +<span class="line-numbers"> 9</span> <span class="reserved">end</span> +<span class="line-numbers"><strong>10</strong></span> <span class="reserved">end</span></code> </pre> </body> </html> |