diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 552dd988f..da7fa2106 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -28,4 +28,8 @@ class HelpController < ApplicationController end render template: "help/wiki_syntax/#{Setting.text_formatting}/#{lang}/wiki_syntax_#{type}#{Setting.text_formatting}", :layout => nil end + + def show_code_highlighting + render template: "help/wiki_syntax/code_highlighting_languages", :layout => nil + end end diff --git a/app/views/help/code_highlighting_languages.html b/app/views/help/wiki_syntax/code_highlighting_languages.html.erb similarity index 99% rename from app/views/help/code_highlighting_languages.html rename to app/views/help/wiki_syntax/code_highlighting_languages.html.erb index a98a9829c..57ae45888 100644 --- a/app/views/help/code_highlighting_languages.html +++ b/app/views/help/wiki_syntax/code_highlighting_languages.html.erb @@ -3,7 +3,7 @@ List of languages supported by Redmine code highlighter - + <%= stylesheet_link_tag "wiki_syntax.css" %> diff --git a/app/views/help/wiki_syntax/common_mark/de/wiki_syntax_detailed_common_mark.html.erb b/app/views/help/wiki_syntax/common_mark/de/wiki_syntax_detailed_common_mark.html.erb index b917d26ea..0e68e83cf 100644 --- a/app/views/help/wiki_syntax/common_mark/de/wiki_syntax_detailed_common_mark.html.erb +++ b/app/views/help/wiki_syntax/common_mark/de/wiki_syntax_detailed_common_mark.html.erb @@ -315,7 +315,7 @@ Es kann durch Klicken auf einen Link erweitert werden.

Code-Hervorhebung

-

Die standardmäßige Code-Hervorhebung basiert auf Rouge, einem reinen Ruby-Code-Highlighter. Rouge unterstützt viele häufig verwendete Sprachen wie c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml und yaml (yml) - die Namen in Klammern sind Aliase. Bitte beachten Sie die Liste der Sprachen, die vom Redmine-Code-Highlighter unterstützt werden.

+

Die standardmäßige Code-Hervorhebung basiert auf Rouge, einem reinen Ruby-Code-Highlighter. Rouge unterstützt viele häufig verwendete Sprachen wie c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml und yaml (yml) - die Namen in Klammern sind Aliase. Bitte beachten Sie die Liste der Sprachen, die vom Redmine-Code-Highlighter unterstützt werden.

Sie können Code an jeder Stelle hervorheben, die Wiki-Formatierung mit dieser Syntax unterstützt (beachten Sie, dass beim Sprachnamen oder Alias ​​die Groß-/Kleinschreibung nicht beachtet wird):

diff --git a/app/views/help/wiki_syntax/common_mark/en/wiki_syntax_detailed_common_mark.html.erb b/app/views/help/wiki_syntax/common_mark/en/wiki_syntax_detailed_common_mark.html.erb index e5ac78fea..2ae37e4d4 100644 --- a/app/views/help/wiki_syntax/common_mark/en/wiki_syntax_detailed_common_mark.html.erb +++ b/app/views/help/wiki_syntax/common_mark/en/wiki_syntax_detailed_common_mark.html.erb @@ -312,7 +312,7 @@ It can be expanded by clicking a link.

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_detailed_markdown.html.erb index 6478abe45..9d324c261 100644 --- a/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_detailed_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_detailed_markdown.html.erb @@ -314,7 +314,7 @@ It can be expanded by clicking a link.

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_markdown.html.erb index f06e5b522..81b404e92 100644 --- a/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@ -Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Вграден код" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_detailed_markdown.html.erb
index 6478abe45..9d324c261 100644
--- a/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_markdown.html.erb index bcd61feca..e2375f0fc 100644 --- a/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_detailed_markdown.html.erb
index fa93c1d2e..81cf7733f 100644
--- a/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_detailed_markdown.html.erb
@@ -311,7 +311,7 @@ Pro rozbalení klikněte na odkaz.
 
     

Zvýrazňování kódu

-

Výchozí zvýrazňování kódu závisí na Rouge, zvýrazňovači kódu napsanému v Ruby. Rouge podporuje mnoho běžně používaných jazyků, jako jsou c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) - jména v závorkách jsou aliasy. Podívejte se, prosím, na seznam jazyků poporovaných zvýrazňovačem kódu Redmine.

+

Výchozí zvýrazňování kódu závisí na Rouge, zvýrazňovači kódu napsanému v Ruby. Rouge podporuje mnoho běžně používaných jazyků, jako jsou c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) - jména v závorkách jsou aliasy. Podívejte se, prosím, na seznam jazyků poporovaných zvýrazňovačem kódu Redmine.

Kód můžete na stránce zvýraznit pomocí následující syntaxe (záleží na velikosti písma jazyku nebo aliasu):

diff --git a/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_markdown.html.erb index 40d734478..055eea764 100644 --- a/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Zvýrazněný kód (" target="_blank">více | podporované jazyky) +Zvýrazněný kód (" target="_blank">více | podporované jazyky) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Ahoj'
end
```
3.times do
   puts 'Ahoj'
diff --git a/app/views/help/wiki_syntax/markdown/de/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/de/wiki_syntax_detailed_markdown.html.erb
index 01d654045..33ac17afe 100644
--- a/app/views/help/wiki_syntax/markdown/de/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/de/wiki_syntax_detailed_markdown.html.erb
@@ -315,7 +315,7 @@ Es kann durch Klicken auf einen Link erweitert werden.
 
     

Code-Hervorhebung

-

Die standardmäßige Code-Hervorhebung basiert auf Rouge, einem reinen Ruby-Code-Highlighter. Rouge unterstützt viele häufig verwendete Sprachen wie c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml und yaml (yml) - die Namen in Klammern sind Aliase. Bitte beachten Sie die Liste der Sprachen, die vom Redmine-Code-Highlighter unterstützt werden.

+

Die standardmäßige Code-Hervorhebung basiert auf Rouge, einem reinen Ruby-Code-Highlighter. Rouge unterstützt viele häufig verwendete Sprachen wie c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml und yaml (yml) - die Namen in Klammern sind Aliase. Bitte beachten Sie die Liste der Sprachen, die vom Redmine-Code-Highlighter unterstützt werden.

Sie können Code an jeder Stelle hervorheben, die Wiki-Formatierung mit dieser Syntax unterstützt (beachten Sie, dass beim Sprachnamen oder Alias ​​die Groß-/Kleinschreibung nicht beachtet wird):

diff --git a/app/views/help/wiki_syntax/markdown/de/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/de/wiki_syntax_markdown.html.erb index c65e2136e..44c0dc527 100644 --- a/app/views/help/wiki_syntax/markdown/de/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/de/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Hervorgehobener Programmcode (" target="_blank">mehr | Unterstützte Sprachen) +Hervorgehobener Programmcode (" target="_blank">mehr | Unterstützte Sprachen) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/en/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/en/wiki_syntax_detailed_markdown.html.erb
index 6478abe45..9d324c261 100644
--- a/app/views/help/wiki_syntax/markdown/en/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/en/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/en/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/en/wiki_syntax_markdown.html.erb index cfdda9389..caf6a7c54 100644 --- a/app/views/help/wiki_syntax/markdown/en/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/en/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_detailed_markdown.html.erb
index 6478abe45..9d324c261 100644
--- a/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_markdown.html.erb index f3a02e0e7..505b3ab67 100644 --- a/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Código resaltado" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/es/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/es/wiki_syntax_detailed_markdown.html.erb
index 6478abe45..9d324c261 100644
--- a/app/views/help/wiki_syntax/markdown/es/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/es/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/es/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/es/wiki_syntax_markdown.html.erb index f3a02e0e7..505b3ab67 100644 --- a/app/views/help/wiki_syntax/markdown/es/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/es/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Código resaltado" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_detailed_markdown.html.erb
index 6478abe45..9d324c261 100644
--- a/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_markdown.html.erb index c0ecbbeab..89298f7e2 100644 --- a/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Code colorisé" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_detailed_markdown.html.erb
index f5d2d3447..2e73e1519 100644
--- a/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_detailed_markdown.html.erb
@@ -313,7 +313,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_markdown.html.erb index f3a02e0e7..505b3ab67 100644 --- a/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Código resaltado" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_detailed_markdown.html.erb
index b68de292d..237fa99ff 100644
--- a/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_detailed_markdown.html.erb
@@ -312,7 +312,7 @@ To go live, all you need to add is a database and a web server.
 
     

コードハイライト

-

RedmineはRubyで記述されたコードハイライト用ライブラリ Rouge を使用しています。Rougeは c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml, yaml (yml) など一般的に使われている多数の言語に対応しています(括弧内の名前はコードハイライトの指定に利用できる別名です)。全対応言語の一覧は List of languages supported by Redmine code highlighter を参照してください。

+

RedmineはRubyで記述されたコードハイライト用ライブラリ Rouge を使用しています。Rougeは c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml, yaml (yml) など一般的に使われている多数の言語に対応しています(括弧内の名前はコードハイライトの指定に利用できる別名です)。全対応言語の一覧は List of languages supported by Redmine code highlighter を参照してください。

Wiki記法に対応している箇所であればどこでも以下の記述によりコードハイライトが利用できます (言語名・別名では大文字・小文字は区別されません):

diff --git a/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_markdown.html.erb index 3f601f8b2..e0ef6022d 100644 --- a/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_markdown.html.erb @@ -22,7 +22,7 @@
-コードハイライト (" target="_blank">詳細 | 対応言語) +コードハイライト (" target="_blank">詳細 | 対応言語) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "コードハイライト" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_detailed_markdown.html.erb
index 6478abe45..9d324c261 100644
--- a/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_markdown.html.erb index 6552b35ac..0d8cb9ac0 100644 --- a/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "색상화한 코드" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_detailed_markdown.html.erb
index 6478abe45..9d324c261 100644
--- a/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_markdown.html.erb index 06ec8793d..5f65f387d 100644 --- a/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Gemarkeerde code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_detailed_markdown.html.erb
index 6478abe45..9d324c261 100644
--- a/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_markdown.html.erb index 04a76b1e5..3f85e1756 100644 --- a/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_detailed_markdown.html.erb
index 942dfc3b4..90c421fca 100644
--- a/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_detailed_markdown.html.erb
@@ -314,7 +314,7 @@ http://www.redmine.org, someone@foo.bar
 
     

குறியீடு சிறப்பம்சமாக

-

இயல்புநிலை குறியீடு சிறப்பம்சத்தை நம்பியுள்ளது Rouge, தூய ரூபியில் எழுதப்பட்ட ஒரு தொடரியல் சிறப்பம்சமாக நூலகம். It supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages, where the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

இயல்புநிலை குறியீடு சிறப்பம்சத்தை நம்பியுள்ளது Rouge, தூய ரூபியில் எழுதப்பட்ட ஒரு தொடரியல் சிறப்பம்சமாக நூலகம். It supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages, where the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

இந்த தொடரியல் பயன்படுத்தி விக்கி வடிவமைப்பை ஆதரிக்கும் எந்த இடத்திலும் குறியீட்டை முன்னிலைப்படுத்தலாம் (மொழி பெயர் அல்லது மாற்று வழக்கு-உணர்வற்றது என்பதை நினைவில் கொள்க):

diff --git a/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_markdown.html.erb index 4f5e7b97c..76a512fcf 100644 --- a/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-சிறப்பம்சமாக குறியீடு (" target="_blank">மேலும் | supported languages) +சிறப்பம்சமாக குறியீடு (" target="_blank">மேலும் | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_detailed_markdown.html.erb
index 9c64ac1cd..838bfba3d 100644
--- a/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_detailed_markdown.html.erb
@@ -312,7 +312,7 @@ http://www.redmine.org, someone@foo.bar
 
     

Підсвітка синтаксису коду

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

Ви можете виділити підсвіткою код в будь-якому місці, яке підтримує вікі-форматування, використовуючи наступний синтаксис (зверніть увагу, що назва мови або псевдонім не чутливі до регістру):

diff --git a/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_markdown.html.erb index 60a42188d..69da04e32 100644 --- a/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_markdown.html.erb @@ -23,7 +23,7 @@
-иділений код (" target="_blank">more | supported languages) +иділений код (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Виділений код" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_detailed_markdown.html.erb
index 0696eb2d0..ee0449e23 100644
--- a/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_detailed_markdown.html.erb
+++ b/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_detailed_markdown.html.erb
@@ -312,7 +312,7 @@ It can be expanded by clicking a link.
 
     

程式碼醒目提示

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

您可載任何支援 Wiki 格式設定的地方,使用這個語法來醒目提示程式碼 (注意語言與其別名的名稱不須區分大小寫):

diff --git a/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_markdown.html.erb index 3000df921..fd06eddcd 100644 --- a/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_markdown.html.erb +++ b/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_markdown.html.erb @@ -22,7 +22,7 @@
-反白程式碼 (" target="_blank">more | supported languages) +反白程式碼 (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "反白程式碼" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/bg/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/bg/wiki_syntax_detailed_textile.html.erb
index 1627fd98e..03ed0141f 100644
--- a/app/views/help/wiki_syntax/textile/bg/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/bg/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/bg/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/bg/wiki_syntax_textile.html.erb index 7e397bbc9..41bca4684 100644 --- a/app/views/help/wiki_syntax/textile/bg/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/bg/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Вграден код" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/ca/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/ca/wiki_syntax_detailed_textile.html.erb
index 1627fd98e..03ed0141f 100644
--- a/app/views/help/wiki_syntax/textile/ca/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/ca/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/ca/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/ca/wiki_syntax_textile.html.erb index 2725f5ec4..1a854e50f 100644 --- a/app/views/help/wiki_syntax/textile/ca/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/ca/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/cs/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/cs/wiki_syntax_detailed_textile.html.erb
index 6adfde547..d5de3c6e6 100644
--- a/app/views/help/wiki_syntax/textile/cs/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/cs/wiki_syntax_detailed_textile.html.erb
@@ -327,7 +327,7 @@ Pro rozbalení klikněte na odkaz.
 
     

Zvýrazňování kódu

-

Výchozí zvýrazňování kódu závisí na Rouge, zvýrazňovači kódu napsaném v Ruby. Rouge podporuje mnoho běžných jazyků jako jsou c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) - jména z závorkách jsou aliasy. Podívejte se, prosím, na seznam jazyků podporovaných zvýrazňovačem kódu Redmine.

+

Výchozí zvýrazňování kódu závisí na Rouge, zvýrazňovači kódu napsaném v Ruby. Rouge podporuje mnoho běžných jazyků jako jsou c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) - jména z závorkách jsou aliasy. Podívejte se, prosím, na seznam jazyků podporovaných zvýrazňovačem kódu Redmine.

Kód můžete na stránce zvýraznit pomocí následující syntaxe (záleží na velikosti písma jazyku nebo aliasu):

diff --git a/app/views/help/wiki_syntax/textile/cs/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/cs/wiki_syntax_textile.html.erb index 8c113ee5e..4def3d1ce 100644 --- a/app/views/help/wiki_syntax/textile/cs/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/cs/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Zvýrazněný kód (" target="_blank">více | podporované jazyky) +Zvýrazněný kód (" target="_blank">více | podporované jazyky) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Zvýrazněný kód" }) %><pre><code class="ruby">
3.times do
  puts 'Ahoj'
end
</code></pre>
3.times do
   puts 'Ahoj'
diff --git a/app/views/help/wiki_syntax/textile/de/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/de/wiki_syntax_detailed_textile.html.erb
index 085c12576..468dbd7a3 100644
--- a/app/views/help/wiki_syntax/textile/de/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/de/wiki_syntax_detailed_textile.html.erb
@@ -320,7 +320,7 @@ Es kann durch Klicken auf einen Link erweitert werden.
 
     

Code-Hervorhebung

-

Die standardmäßige Code-Hervorhebung basiert auf Rouge, einem reinen Ruby-Code-Highlighter. Rouge unterstützt viele häufig verwendete Sprachen wie c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml und yaml (yml) - die Namen in Klammern sind Aliase. Bitte beachten Sie die Liste der Sprachen, die vom Redmine-Code-Highlighter unterstützt werden.

+

Die standardmäßige Code-Hervorhebung basiert auf Rouge, einem reinen Ruby-Code-Highlighter. Rouge unterstützt viele häufig verwendete Sprachen wie c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml und yaml (yml) - die Namen in Klammern sind Aliase. Bitte beachten Sie die Liste der Sprachen, die vom Redmine-Code-Highlighter unterstützt werden.

Sie können Code an jeder Stelle hervorheben, die Wiki-Formatierung mit dieser Syntax unterstützt (beachten Sie, dass beim Sprachnamen oder Alias ​​die Groß-/Kleinschreibung nicht beachtet wird):

diff --git a/app/views/help/wiki_syntax/textile/de/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/de/wiki_syntax_textile.html.erb index 46f017c79..1708e09bf 100644 --- a/app/views/help/wiki_syntax/textile/de/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/de/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Hervorgehobener Programmcode (" target="_blank">mehr | Unterstützte Sprachen) +Hervorgehobener Programmcode (" target="_blank">mehr | Unterstützte Sprachen) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Hervorgehobener Programmcode" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/en/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/en/wiki_syntax_detailed_textile.html.erb
index 1627fd98e..03ed0141f 100644
--- a/app/views/help/wiki_syntax/textile/en/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/en/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/en/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/en/wiki_syntax_textile.html.erb index 270176219..58e5046b2 100644 --- a/app/views/help/wiki_syntax/textile/en/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/en/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/es-pa/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/es-pa/wiki_syntax_detailed_textile.html.erb
index 1627fd98e..03ed0141f 100644
--- a/app/views/help/wiki_syntax/textile/es-pa/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/es-pa/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/es-pa/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/es-pa/wiki_syntax_textile.html.erb index 4b5355ac8..36f631ea5 100644 --- a/app/views/help/wiki_syntax/textile/es-pa/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/es-pa/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Código resaltado" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/es/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/es/wiki_syntax_detailed_textile.html.erb
index 1627fd98e..03ed0141f 100644
--- a/app/views/help/wiki_syntax/textile/es/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/es/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/es/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/es/wiki_syntax_textile.html.erb index 4b5355ac8..36f631ea5 100644 --- a/app/views/help/wiki_syntax/textile/es/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/es/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Código resaltado" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/fr/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/fr/wiki_syntax_detailed_textile.html.erb
index 0c98afdaf..f8340d346 100644
--- a/app/views/help/wiki_syntax/textile/fr/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/fr/wiki_syntax_detailed_textile.html.erb
@@ -312,7 +312,7 @@ Il peut être déroulé en cliquant sur le lien.
 
     

Coloration syntaxique

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/fr/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/fr/wiki_syntax_textile.html.erb index f7a48e19f..0e7c7ba48 100644 --- a/app/views/help/wiki_syntax/textile/fr/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/fr/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Code colorisé (" target="_blank">more | supported languages) +Code colorisé (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Code colorisé" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/gl/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/gl/wiki_syntax_detailed_textile.html.erb
index d4babb491..7b755a53f 100644
--- a/app/views/help/wiki_syntax/textile/gl/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/gl/wiki_syntax_detailed_textile.html.erb
@@ -320,7 +320,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/gl/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/gl/wiki_syntax_textile.html.erb index 6c1f8d651..2d54bda9a 100644 --- a/app/views/help/wiki_syntax/textile/gl/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/gl/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Código resaltado" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/ja/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/ja/wiki_syntax_detailed_textile.html.erb
index 6d621b2e6..f194e499d 100644
--- a/app/views/help/wiki_syntax/textile/ja/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/ja/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ To go live, all you need to add is a database and a web server.
 
     

コードハイライト

-

RedmineはRubyで記述されたコードハイライト用ライブラリ Rouge を使用しています。Rougeは c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml, yaml (yml) など一般的に使われている多数の言語に対応しています(括弧内の名前はコードハイライトの指定に利用できる別名です)。全対応言語の一覧は List of languages supported by Redmine code highlighter を参照してください。

+

RedmineはRubyで記述されたコードハイライト用ライブラリ Rouge を使用しています。Rougeは c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml, yaml (yml) など一般的に使われている多数の言語に対応しています(括弧内の名前はコードハイライトの指定に利用できる別名です)。全対応言語の一覧は List of languages supported by Redmine code highlighter を参照してください。

Wiki記法に対応している箇所であればどこでも以下の記述によりコードハイライトが利用できます (言語名・別名では大文字・小文字は区別されません):

diff --git a/app/views/help/wiki_syntax/textile/ja/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/ja/wiki_syntax_textile.html.erb index ae62f54d6..de265edc1 100644 --- a/app/views/help/wiki_syntax/textile/ja/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/ja/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-コードハイライト (" target="_blank">詳細 | 対応言語) +コードハイライト (" target="_blank">詳細 | 対応言語) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "コードハイライト" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/ko/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/ko/wiki_syntax_detailed_textile.html.erb
index 1627fd98e..03ed0141f 100644
--- a/app/views/help/wiki_syntax/textile/ko/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/ko/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/ko/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/ko/wiki_syntax_textile.html.erb index 2c3d3f4cd..a7b9cebc1 100644 --- a/app/views/help/wiki_syntax/textile/ko/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/ko/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "색상화한 코드" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/lt/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/lt/wiki_syntax_detailed_textile.html.erb
index c1e698f7b..527079b18 100644
--- a/app/views/help/wiki_syntax/textile/lt/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/lt/wiki_syntax_detailed_textile.html.erb
@@ -320,7 +320,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/lt/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/lt/wiki_syntax_textile.html.erb index 270176219..58e5046b2 100644 --- a/app/views/help/wiki_syntax/textile/lt/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/lt/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/nl/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/nl/wiki_syntax_detailed_textile.html.erb
index 1627fd98e..03ed0141f 100644
--- a/app/views/help/wiki_syntax/textile/nl/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/nl/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/nl/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/nl/wiki_syntax_textile.html.erb index 1323097ff..2fee4f5d9 100644 --- a/app/views/help/wiki_syntax/textile/nl/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/nl/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Gemarkeerde code" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/pt-br/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/pt-br/wiki_syntax_detailed_textile.html.erb
index 1627fd98e..03ed0141f 100644
--- a/app/views/help/wiki_syntax/textile/pt-br/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/pt-br/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

Code highlighting

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/pt-br/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/pt-br/wiki_syntax_textile.html.erb index 96e3c845f..d30178cac 100644 --- a/app/views/help/wiki_syntax/textile/pt-br/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/pt-br/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/ru/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/ru/wiki_syntax_detailed_textile.html.erb
index 849905b85..9b04f8cc3 100644
--- a/app/views/help/wiki_syntax/textile/ru/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/ru/wiki_syntax_detailed_textile.html.erb
@@ -344,7 +344,7 @@ bq. Rails - это полноценный, многоуровневый фрей
 
 

Подсветка кода

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

Вы можете подсветить код в любом месте, где поддерживается wiki-форматирование (название языка не зависит от регистра):

diff --git a/app/views/help/wiki_syntax/textile/ru/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/ru/wiki_syntax_textile.html.erb index 77210380c..b1f300452 100644 --- a/app/views/help/wiki_syntax/textile/ru/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/ru/wiki_syntax_textile.html.erb @@ -58,7 +58,7 @@ -Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/ta-in/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/ta-in/wiki_syntax_detailed_textile.html.erb
index f8007c45d..0adcdfb1a 100644
--- a/app/views/help/wiki_syntax/textile/ta-in/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/ta-in/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ bq. ரெயில்ஸ் என்பது மாடல்-வியூ-க
 
     

குறியீடு சிறப்பம்சமாக

-

இயல்புநிலை குறியீடு சிறப்பம்சத்தை நம்பியுள்ளது Rouge, a syntax highlighting library written in pure Ruby. It supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages, where the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

இயல்புநிலை குறியீடு சிறப்பம்சத்தை நம்பியுள்ளது Rouge, a syntax highlighting library written in pure Ruby. It supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages, where the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

இந்த தொடரியல் பயன்படுத்தி விக்கி வடிவமைப்பை ஆதரிக்கும் எந்த இடத்திலும் குறியீட்டை முன்னிலைப்படுத்தலாம் (மொழி பெயர் அல்லது மாற்று வழக்கு-உணர்வற்றது என்பதை நினைவில் கொள்க):

diff --git a/app/views/help/wiki_syntax/textile/ta-in/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/ta-in/wiki_syntax_textile.html.erb index dc40cb418..b63c43bd5 100644 --- a/app/views/help/wiki_syntax/textile/ta-in/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/ta-in/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-சிறப்பம்சமாக குறியீடு (" target="_blank">மேலும்) | supported languages) +சிறப்பம்சமாக குறியீடு (" target="_blank">மேலும்) | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/uk/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/uk/wiki_syntax_detailed_textile.html.erb
index bbd47d6a0..64a91c295 100644
--- a/app/views/help/wiki_syntax/textile/uk/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/uk/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ bq. Redmine — серверний веб-додаток з відкритим 
 
     

Підсвітка синтаксису коду

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

Ви можете виділити підсвіткою код в будь-якому місці, яке підтримує вікі-форматування, використовуючи наступний синтаксис (зверніть увагу, що назва мови або псевдонім не чутливі до регістру):

diff --git a/app/views/help/wiki_syntax/textile/uk/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/uk/wiki_syntax_textile.html.erb index 619b8bf6f..b7fb26030 100644 --- a/app/views/help/wiki_syntax/textile/uk/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/uk/wiki_syntax_textile.html.erb @@ -25,7 +25,7 @@
-иділений код (" target="_blank">more | supported languages) +иділений код (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Виділений код" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/zh-tw/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/zh-tw/wiki_syntax_detailed_textile.html.erb
index e78478d3b..07c263801 100644
--- a/app/views/help/wiki_syntax/textile/zh-tw/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/zh-tw/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ It can be expanded by clicking a link.
 
     

程式碼醒目提示

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

您可載任何支援 Wiki 格式設定的地方,使用這個語法來醒目提示程式碼 (注意語言與其別名的名稱不須區分大小寫):

diff --git a/app/views/help/wiki_syntax/textile/zh-tw/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/zh-tw/wiki_syntax_textile.html.erb index aa3993d07..3fb4b0036 100644 --- a/app/views/help/wiki_syntax/textile/zh-tw/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/zh-tw/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-反白程式碼 (" target="_blank">more | supported languages) +反白程式碼 (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "反白程式碼" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/app/views/help/wiki_syntax/textile/zh/wiki_syntax_detailed_textile.html.erb b/app/views/help/wiki_syntax/textile/zh/wiki_syntax_detailed_textile.html.erb
index bad0199e7..30be9a0f5 100644
--- a/app/views/help/wiki_syntax/textile/zh/wiki_syntax_detailed_textile.html.erb
+++ b/app/views/help/wiki_syntax/textile/zh/wiki_syntax_detailed_textile.html.erb
@@ -319,7 +319,7 @@ To go live, all you need to add is a database and a web server.
 
     

代码高亮

-

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

+

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

diff --git a/app/views/help/wiki_syntax/textile/zh/wiki_syntax_textile.html.erb b/app/views/help/wiki_syntax/textile/zh/wiki_syntax_textile.html.erb index 1e093db13..ce508b404 100644 --- a/app/views/help/wiki_syntax/textile/zh/wiki_syntax_textile.html.erb +++ b/app/views/help/wiki_syntax/textile/zh/wiki_syntax_textile.html.erb @@ -24,7 +24,7 @@
-Highlighted code (" target="_blank">more | supported languages) +Highlighted code (" target="_blank">more | supported languages) <%= image_tag("images/jstoolbar/bt_precode.png", { alt: "Highlighted code" }) %><pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/config/routes.rb b/config/routes.rb
index 6965c8a8b..3a1e7e697 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -408,6 +408,7 @@ Rails.application.routes.draw do
   get 'robots.:format', :to => 'welcome#robots', :constraints => {:format => 'txt'}
 
   get 'help/wiki_syntax/(:type)', :controller => 'help', :action => 'show_wiki_syntax', :constraints => { :type => /detailed/ }, as: 'help_wiki_syntax'
+  get 'help/code_highlighting', :controller => 'help', :action => 'show_code_highlighting',  as: 'help_code_highlighting'
 
   Redmine::Plugin.directory.glob("*/config/routes.rb").sort.each do |plugin_routes_path|
     instance_eval(plugin_routes_path.read, plugin_routes_path.to_s)
diff --git a/test/functional/help_controller_test.rb b/test/functional/help_controller_test.rb
index a2743dd16..3bd689094 100644
--- a/test/functional/help_controller_test.rb
+++ b/test/functional/help_controller_test.rb
@@ -81,4 +81,11 @@ class HelpControllerTest < Redmine::ControllerTest
 
     assert_match "Wiki Syntax Quick Reference (CommonMark Markdown (GitHub Flavored))", response.body
   end
+
+  def test_get_help_code_highlighting
+    get :show_code_highlighting
+    assert_response :success
+
+    assert_select 'h1', :text =>  "List of languages supported by Redmine code highlighter"
+  end
 end
diff --git a/test/integration/routing/help_test.rb b/test/integration/routing/help_test.rb
index 3a94621ac..6c1e5edeb 100644
--- a/test/integration/routing/help_test.rb
+++ b/test/integration/routing/help_test.rb
@@ -23,5 +23,7 @@ class RoutingHelpTest < Redmine::RoutingTest
   def test_help
     should_route 'GET /help/wiki_syntax' => 'help#show_wiki_syntax'
     should_route 'GET /help/wiki_syntax/detailed' => 'help#show_wiki_syntax', :type => "detailed"
+
+    should_route 'GET /help/code_highlighting' => 'help#show_code_highlighting'
   end
 end