From 763d5dddde2c7dda03fe529c9dfe0d553669c277 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 14 Aug 2015 02:47:54 +0000 Subject: [#20288] Update the CodeRay Ruby syntax highlight example. This commit changes the following: * Remove line numbering from syntax highlight example. * Add span with 'CodeRay' class around the syntax highlight example. * Fix span classes in the syntax highlight example: ** Ruby scanner changed from ':reserved' to ':keyword' with CodeRay 1.0.0. * Remove obsolete line numbering styles. * Fix internal stylesheet to match CodeRay 1.1.0 (preserving r10132's changes). * Sort internal styles and remove superfluous newlines between styles. Contributed by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@14492 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/help/sl/wiki_syntax_detailed_markdown.html | 45 ++++++++++------------- public/help/sl/wiki_syntax_detailed_textile.html | 45 ++++++++++------------- 2 files changed, 40 insertions(+), 50 deletions(-) (limited to 'public/help/sl') diff --git a/public/help/sl/wiki_syntax_detailed_markdown.html b/public/help/sl/wiki_syntax_detailed_markdown.html index 5d3d4acd8..b42394882 100644 --- a/public/help/sl/wiki_syntax_detailed_markdown.html +++ b/public/help/sl/wiki_syntax_detailed_markdown.html @@ -12,28 +12,23 @@ margin: 1em 1em 1em 1.6em; padding: 2px; background-color: #fafafa; - border: 1px solid #dadada; - width:95%; + border: 1px solid #e2e2e2; + width: auto; overflow-x: auto; + overflow-y: hidden; } a.new { color: #b73535; } - .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 .class { color:#258; font-weight:bold } + .syntaxhl .comment { color:#385; } .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 .inline { background-color: hsla(0,0%,0%,0.07); color: black } + .syntaxhl .inline-delimiter { font-weight: bold; color: #666 } .syntaxhl .instance-variable { color:#33B } - .syntaxhl .reserved { color:#080; font-weight:bold } - - .syntaxhl .string { background-color:#fff0f0; color: #D20; } - .syntaxhl .string .delimiter { color:#710 } - + .syntaxhl .keyword { color:#939; font-weight:bold } + .syntaxhl .string .content { color: #46a } + .syntaxhl .string .delimiter { color:#46a } @@ -314,16 +309,16 @@ It can be expanded by clicking a link.

Example:

-
 1 # The Greeter class
- 2 class Greeter
- 3   def initialize(name)
- 4     @name = name.capitalize
- 5   end
- 6
- 7   def salute
- 8     puts "Hello #{@name}!"
- 9   end
-10 end
+
# The Greeter class
+class Greeter
+  def initialize(name)
+    @name = name.capitalize
+  end
+
+  def salute
+    puts "Hello #{@name}!"
+  end
+end
 
diff --git a/public/help/sl/wiki_syntax_detailed_textile.html b/public/help/sl/wiki_syntax_detailed_textile.html index 46f8c2ce9..09f3210ef 100644 --- a/public/help/sl/wiki_syntax_detailed_textile.html +++ b/public/help/sl/wiki_syntax_detailed_textile.html @@ -12,28 +12,23 @@ margin: 1em 1em 1em 1.6em; padding: 2px; background-color: #fafafa; - border: 1px solid #dadada; - width:95%; + border: 1px solid #e2e2e2; + width: auto; overflow-x: auto; + overflow-y: hidden; } a.new { color: #b73535; } - .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 .class { color:#258; font-weight:bold } + .syntaxhl .comment { color:#385; } .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 .inline { background-color: hsla(0,0%,0%,0.07); color: black } + .syntaxhl .inline-delimiter { font-weight: bold; color: #666 } .syntaxhl .instance-variable { color:#33B } - .syntaxhl .reserved { color:#080; font-weight:bold } - - .syntaxhl .string { background-color:#fff0f0; color: #D20; } - .syntaxhl .string .delimiter { color:#710 } - + .syntaxhl .keyword { color:#939; font-weight:bold } + .syntaxhl .string .content { color: #46a } + .syntaxhl .string .delimiter { color:#46a } @@ -318,16 +313,16 @@ It can be expanded by clicking a link.

Example:

-
 1 # The Greeter class
- 2 class Greeter
- 3   def initialize(name)
- 4     @name = name.capitalize
- 5   end
- 6
- 7   def salute
- 8     puts "Hello #{@name}!"
- 9   end
-10 end
+
# The Greeter class
+class Greeter
+  def initialize(name)
+    @name = name.capitalize
+  end
+
+  def salute
+    puts "Hello #{@name}!"
+  end
+end
 
-- cgit v1.2.3