diff --git a/public/help/en/wiki_syntax_detailed_markdown.html b/public/help/en/wiki_syntax_detailed_markdown.html index 787df08a3..6e505d0cb 100644 --- a/public/help/en/wiki_syntax_detailed_markdown.html +++ b/public/help/en/wiki_syntax_detailed_markdown.html @@ -314,7 +314,7 @@ It can be expanded by clicking a link.

Code highlighting

-

Default code highlightment relies on 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 https://www.redmine.org/projects/redmine/wiki/RedmineCodeHighlightingLanguages for the full list of supported languages.

+

Default code highlightment relies on 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 Supported languages for the full list of supported languages.

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/public/help/en/wiki_syntax_detailed_textile.html b/public/help/en/wiki_syntax_detailed_textile.html index 02c662052..239a4a168 100644 --- a/public/help/en/wiki_syntax_detailed_textile.html +++ b/public/help/en/wiki_syntax_detailed_textile.html @@ -319,7 +319,7 @@ It can be expanded by clicking a link.

Code highlighting

-

Default code highlightment relies on 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 https://www.redmine.org/projects/redmine/wiki/RedmineCodeHighlightingLanguages for the full list of supported languages.

+

Default code highlightment relies on 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 Supported languages for the full list of supported languages.

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/public/help/en/wiki_syntax_markdown.html b/public/help/en/wiki_syntax_markdown.html index b171b9abf..09dcfc7de 100644 --- a/public/help/en/wiki_syntax_markdown.html +++ b/public/help/en/wiki_syntax_markdown.html @@ -23,7 +23,7 @@ -Highlighted code (more) +Highlighted code (more, Supported languages) Highlighted code``` ruby
3.times do
  puts 'Hello'
end
```
3.times do
   puts 'Hello'
diff --git a/public/help/en/wiki_syntax_textile.html b/public/help/en/wiki_syntax_textile.html
index e0310b674..e8752b9a9 100644
--- a/public/help/en/wiki_syntax_textile.html
+++ b/public/help/en/wiki_syntax_textile.html
@@ -24,7 +24,7 @@
 
-Highlighted code (more) +Highlighted code (more, Supported languages) Highlighted code<pre><code class="ruby">
3.times do
  puts 'Hello'
end
</code></pre>
3.times do
   puts 'Hello'
diff --git a/public/help/languages_supported_by_syntax_highlighting.html b/public/help/languages_supported_by_syntax_highlighting.html
new file mode 100644
index 000000000..3df7bf246
--- /dev/null
+++ b/public/help/languages_supported_by_syntax_highlighting.html
@@ -0,0 +1,722 @@
+
+
+
+
+  Redmine - Languages supported by syntax highlighting
+  
+  
+
+
+
+  

Languages supported by syntax highlighting

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LanguageDescription
abapSAP - Advanced Business Application Programming
actionscriptActionScript [aliases: as,as3]
adaThe Ada 2012 programming language
apacheconfiguration files for Apache web server
apexThe Apex programming language (provided by salesforce)
apiblueprintMarkdown based API description language. [aliases: apiblueprint,apib]
applescriptThe AppleScript scripting language by Apple Inc. (http://developer.apple.com/applescript/) [aliases: + applescript]
armasmArm assembly syntax
awkpattern-directed scanning and processing language
batchfileWindows Batch File [aliases: bat,batch,dosbatch,winbatch]
bbcbasicBBC BASIC syntax
bimlBIML, Business Intelligence Markup Language
bpfBPF bytecode syntax
brainfuckThe Brainfuck programming language
bslThe 1C:Enterprise programming language
cThe C programming language
ceylonSay more, more clearly.
cfscriptCFScript, the CFML scripting language [aliases: cfc]
cleanThe Clean programming language (clean.cs.ru.nl)
clojureThe Clojure programming language (clojure.org) [aliases: clj,cljs]
cmakeThe cross-platform, open-source build system
cmhgRISC OS C module header generator source file
coffeescriptThe Coffeescript programming language (coffeescript.org) [aliases: coffee,coffee-script]
common_lispThe Common Lisp variant of Lisp (common-lisp.net) [aliases: cl,common-lisp,elisp,emacs-lisp,lisp]
confA generic lexer for configuration files [aliases: config,configuration]
consoleA generic lexer for shell sessions. Accepts ?lang and ?output lexer options, a ?prompt option, and + ?comments to enable # comments. [aliases: terminal,shell_session,shell-session]
coqCoq (coq.inria.fr)
cppThe C++ programming language [aliases: c++]
crystalCrystal The Programming Language (crystal-lang.org) [aliases: cr]
csharpa multi-paradigm language targeting .NET [aliases: c#,cs]
cssCascading Style Sheets, used to style web pages
csvsThe CSV Schema Language (digital-preservation.github.io)
cudaCompute Unified Device Architecture, used for programming with NVIDIA GPU
cythonCython and Pyrex source code (cython.org) [aliases: pyx,pyrex]
dThe D programming language(dlang.org) [aliases: dlang]
dartThe Dart programming language (dartlang.com)
diffLexes unified diffs or patches [aliases: patch,udiff]
digdagA simple, open source, multi-cloud workflow engine (https://www.digdag.io/)
dockerDockerfile syntax [aliases: dockerfile]
dotgraph description language
eexEmbedded Elixir [aliases: leex]
eiffelEiffel programming language
elixirElixir language (elixir-lang.org) [aliases: elixir,exs]
elmThe Elm programming language (http://elm-lang.org/)
eppEmbedded Puppet template files
erbEmbedded ruby template files [aliases: eruby,rhtml]
erlangThe Erlang programming language (erlang.org) [aliases: erl]
escapeA generic lexer for including escaped content - see Formatter.enable_escape! [aliases: esc]
factorFactor, the practical stack language (factorcode.org)
fortranFortran 2008 (free-form)
fsharpF# (fsharp.net)
gdscriptThe Godot Engine programming language (https://godotengine.org/) [aliases: gd,gdscript]
gherkinA business-readable spec DSL (github.com/cucumber/cucumber/wiki/Gherkin) [aliases: cucumber,behat]
glslThe GLSL shader language
goThe Go programming language (http://golang.org) [aliases: go,golang]
gradleA powerful build system for the JVM
graphqlGraphQL
groovyThe Groovy programming language (http://www.groovy-lang.org/)
hackThe Hack programming language (hacklang.org) [aliases: hack,hh]
hamlThe Haml templating system for Ruby (haml.info) [aliases: HAML]
handlebarsthe Handlebars and Mustache templating languages [aliases: hbs,mustache]
haskellThe Haskell programming language (haskell.org) [aliases: hs]
haxeHaxe Cross-platform Toolkit (http://haxe.org) [aliases: hx,haxe]
hclHashicorp Configuration Language, used by Terraform and other Hashicorp tools
hoconHuman-Optimized Config Object Notation (https://github.com/lightbend/config)
hqlHive Query Language SQL dialect
htmlHTML, the markup language of the web
httphttp requests and responses
hylangThe HyLang programming language (hylang.org) [aliases: hy]
idlangInteractive Data Language
igorproWaveMetrics Igor Pro
inithe INI configuration format
ioThe IO programming language (http://iolanguage.com)
irbShell sessions in IRB or Pry [aliases: pry]
javaThe Java programming language (java.com)
javascriptJavaScript, the browser scripting language [aliases: js]
jinjaDjango/Jinja template engine (jinja.pocoo.org) [aliases: django]
jslThe JMP Scripting Language (JSL) (jmp.com)
jsonJavaScript Object Notation (json.org)
json-docJavaScript Object Notation with extenstions for documentation
jsonnetAn elegant, formally-specified config language for JSON
jspJSP
jsxReact JSX (https://facebook.github.io/react/) [aliases: jsx,react]
juliaThe Julia programming language [aliases: jl]
kotlinKotlin Programming Language (http://kotlinlang.org)
lassoThe Lasso programming language (lassosoft.com) [aliases: lassoscript]
liquidLiquid is a templating engine for Ruby (liquidmarkup.org)
literate_coffeescriptLiterate coffeescript [aliases: litcoffee]
literate_haskellLiterate haskell [aliases: lithaskell,lhaskell,lhs]
llvmThe LLVM Compiler Infrastructure (http://llvm.org/)
luaLua (http://www.lua.org)
lustreThe Lustre programming language (Verimag)
lutinThe Lutin programming language (Verimag)
m68kMotorola 68k Assembler
magikSmallworld Magik
makeMakefile syntax [aliases: makefile,mf,gnumake,bsdmake]
markdownMarkdown, a light-weight markup language for authors [aliases: md,mkd]
masonThe HTML::Mason framework (https://metacpan.org/pod/HTML::Mason)
mathematicaWolfram Mathematica, the world's definitive system for modern technical computing. [aliases: wl]
matlabMatlab [aliases: m]
minizincMiniZinc is a free and open-source constraint modeling language (minizinc.org)
moonscriptMoonscript (http://www.moonscript.org) [aliases: moon]
moselAn optimization language used by Fico's Xpress.
msgtransRISC OS message translator messages file
mxmlMXML
nasmNetwide Assembler
nginxconfiguration files for the nginx web server (nginx.org)
nimThe Nim programming language (http://nim-lang.org/) [aliases: nimrod]
nixThe Nix expression language (https://nixos.org/nix/manual/#ch-expression-language) [aliases: nixos]
objective_can extension of C commonly used to write Apple software [aliases: objc,obj-c,obj_c,objectivec]
ocamlObjective Caml (ocaml.org)
openedgeThe OpenEdge ABL programming language
opentype_feature_fileFeature specifications for an OpenType font (adobe-type-tools.github.io/afdko) [aliases: + fea,opentype,opentypefeature]
pascala procedural programming language commonly used as a teaching language.
perlThe Perl scripting language (perl.org) [aliases: pl]
phpThe PHP scripting language (php.net) [aliases: php,php3,php4,php5]
plaintextA boring lexer that doesn't highlight anything [aliases: text]
plistplist [aliases: plist]
powershellpowershell [aliases: posh,microsoftshell,msshell]
praatThe Praat scripting language (praat.org)
prologThe Prolog programming language (http://en.wikipedia.org/wiki/Prolog) [aliases: prolog]
prometheusprometheus [aliases: prometheus]
properties.properties config files for Java
protobufGoogle's language-neutral, platform-neutral, extensible mechanism for serializing structured data + [aliases: proto]
puppetThe Puppet configuration management language (puppetlabs.org) [aliases: pp]
pythonThe Python programming language (python.org) [aliases: py]
qThe Q programming language (kx.com) [aliases: kdb+]
qmlQML, a UI markup language [aliases: qml]
rThe R statistics language (r-project.org) [aliases: r,R,s,S]
racketRacket is a Lisp descended from Scheme (racket-lang.org)
reasonmlNew syntax on top of OCaml ecosystem (reasonml.github.io)
robot_frameworkRobot Framework is a generic open source automation testing framework (robotframework.org) + [aliases: robot,robot-framework]
rubyThe Ruby programming language (ruby-lang.org) [aliases: rb]
rustThe Rust programming language (rust-lang.org) [aliases: + rs,rust,no_run,rs,no_run,rust,ignore,rs,ignore,rust,should_panic,rs,should_panic]
sasSAS (Statistical Analysis Software)
sassThe Sass stylesheet language language (sass-lang.com)
scalaThe Scala programming language (scala-lang.org) [aliases: scala]
schemeThe Scheme variant of Lisp
scssSCSS stylesheets (sass-lang.com)
sedsed, the ultimate stream editor
shellVarious shell languages, including sh and bash [aliases: bash,zsh,ksh,sh]
sievemail filtering language
slimThe Slim template language
smalltalkThe Smalltalk programming language [aliases: st,squeak]
smartySmarty Template Engine [aliases: smarty]
smlStandard ML [aliases: ml]
sparqlSemantic Query Language, for RDF data
sqfStatus Quo Function, a Real Virtuality engine scripting language
sqlStructured Query Language, for relational databases
supercolliderA cross-platform interpreted programming language for sound synthesis, algorithmic composition, and + realtime performance
swiftMulti paradigm, compiled programming language developed by Apple for iOS and OS X development. + (developer.apple.com/swift)
tapTest Anything Protocol [aliases: tap]
tclThe Tool Command Language (tcl.tk)
terraformTerraform HCL Interpolations [aliases: tf]
texThe TeX typesetting system [aliases: TeX,LaTeX,latex]
tomlthe TOML configuration format (https://github.com/mojombo/toml)
tsxtsx
tulipthe tulip programming language (twitter.com/tuliplang) [aliases: tulip]
turtleTerse RDF Triple Language, TriG
twigTwig template engine (twig.sensiolabs.org)
typescriptTypeScript, a superset of JavaScript [aliases: ts]
valaA programming language similar to csharp.
vbVisual Basic [aliases: visualbasic]
verilogThe System Verilog hardware description language
vhdlVery High Speed Integrated Circuit Hardware Description Language
vimlVimL, the scripting language for the Vim editor (vim.org) [aliases: vim,vimscript,ex]
vueVue.js single-file components [aliases: vuejs]
wollokWollok lang
xml + XML +
xojoXojo [aliases: realbasic]
xpathXML Path Language (XPath) 3.1
xqueryXQuery 3.1: An XML Query Language
yamlYaml Ain't Markup Language (yaml.org) [aliases: yml] + +
+ \ No newline at end of file