Project

General

Profile

Feature #40681 ยป dynamic-generation-of-syntax-highlighting-languages.patch

Go MAEDA, 2024-05-11 09:49

View differences:

app/controllers/help_controller.rb
30 30
  end
31 31

  
32 32
  def show_code_highlighting
33
    @available_lexers = Rouge::Lexer.all.sort_by(&:tag)
33 34
    render template: "help/wiki_syntax/code_highlighting_languages", layout: nil
34 35
  end
35 36
end
app/views/help/wiki_syntax/code_highlighting_languages.html.erb
14 14
      <th>Language</th>
15 15
      <th>Description</th>
16 16
    </tr>
17
    <tr>
18
      <td>abap</td>
19
      <td>SAP - Advanced Business Application Programming</td>
20
    </tr>
21
    <tr>
22
      <td>actionscript</td>
23
      <td>ActionScript [aliases: as,as3]</td>
24
    </tr>
25
    <tr>
26
      <td>ada</td>
27
      <td>The Ada 2012 programming language</td>
28
    </tr>
29
    <tr>
30
      <td>apache</td>
31
      <td>configuration files for Apache web server</td>
32
    </tr>
33
    <tr>
34
      <td>apex</td>
35
      <td>The Apex programming language (provided by salesforce)</td>
36
    </tr>
37
    <tr>
38
      <td>apiblueprint</td>
39
      <td>Markdown based API description language. [aliases: apiblueprint,apib]</td>
40
    </tr>
41
    <tr>
42
      <td>applescript</td>
43
      <td>The AppleScript scripting language by Apple Inc. (https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html) [aliases: applescript]</td>
44
    </tr>
45
    <tr>
46
      <td>armasm</td>
47
      <td>Arm assembly syntax</td>
48
    </tr>
49
    <tr>
50
      <td>augeas</td>
51
      <td>The Augeas programming language (augeas.net) [aliases: aug]</td>
52
    </tr>
53
    <tr>
54
      <td>awk</td>
55
      <td>pattern-directed scanning and processing language</td>
56
    </tr>
57
    <tr>
58
      <td>batchfile</td>
59
      <td>Windows Batch File [aliases: bat,batch,dosbatch,winbatch]</td>
60
    </tr>
61
    <tr>
62
      <td>bbcbasic</td>
63
      <td>BBC BASIC syntax</td>
64
    </tr>
65
    <tr>
66
      <td>bibtex</td>
67
      <td>BibTeX [aliases: bib]</td>
68
    </tr>
69
    <tr>
70
      <td>biml</td>
71
      <td>BIML, Business Intelligence Markup Language</td>
72
    </tr>
73
    <tr>
74
      <td>bpf</td>
75
      <td>BPF bytecode syntax</td>
76
    </tr>
77
    <tr>
78
      <td>brainfuck</td>
79
      <td>The Brainfuck programming language</td>
80
    </tr>
81
    <tr>
82
      <td>brightscript</td>
83
      <td>BrightScript Programming Language (https://developer.roku.com/en-ca/docs/references/brightscript/language/brightscript-language-reference.md) [aliases: bs,brs]</td>
84
    </tr>
85
    <tr>
86
      <td>bsl</td>
87
      <td>The 1C:Enterprise programming language</td>
88
    </tr>
89
    <tr>
90
      <td>c</td>
91
      <td>The C programming language</td>
92
    </tr>
93
    <tr>
94
      <td>ceylon</td>
95
      <td>Say more, more clearly.</td>
96
    </tr>
97
    <tr>
98
      <td>cfscript</td>
99
      <td>CFScript, the CFML scripting language [aliases: cfc]</td>
100
    </tr>
101
    <tr>
102
      <td>cisco_ios</td>
103
      <td>Cisco IOS configuration lexer</td>
104
    </tr>
105
    <tr>
106
      <td>clean</td>
107
      <td>The Clean programming language (clean.cs.ru.nl)</td>
108
    </tr>
109
    <tr>
110
      <td>clojure</td>
111
      <td>The Clojure programming language (clojure.org) [aliases: clj,cljs]</td>
112
    </tr>
113
    <tr>
114
      <td>cmake</td>
115
      <td>The cross-platform, open-source build system</td>
116
    </tr>
117
    <tr>
118
      <td>cmhg</td>
119
      <td>RISC OS C module header generator source file</td>
120
    </tr>
121
    <tr>
122
      <td>codeowners</td>
123
      <td>Code Owners syntax (https://docs.gitlab.com/ee/user/project/codeowners/reference.html)</td>
124
    </tr>
125
    <tr>
126
      <td>coffeescript</td>
127
      <td>The Coffeescript programming language (coffeescript.org) [aliases: coffee,coffee-script]</td>
128
    </tr>
129
    <tr>
130
      <td>common_lisp</td>
131
      <td>The Common Lisp variant of Lisp (common-lisp.net) [aliases: cl,common-lisp,elisp,emacs-lisp,lisp]</td>
132
    </tr>
133
    <tr>
134
      <td>conf</td>
135
      <td>A generic lexer for configuration files [aliases: config,configuration]</td>
136
    </tr>
137
    <tr>
138
      <td>console</td>
139
      <td>A generic lexer for shell sessions. Accepts ?lang and ?output lexer options, a ?prompt option, ?comments to enable # comments, and ?error to handle error messages. [aliases: terminal,shell_session,shell-session]</td>
140
    </tr>
141
    <tr>
142
      <td>coq</td>
143
      <td>Coq (coq.inria.fr)</td>
144
    </tr>
145
    <tr>
146
      <td>cpp</td>
147
      <td>The C++ programming language [aliases: c++]</td>
148
    </tr>
149
    <tr>
150
      <td>crystal</td>
151
      <td>Crystal The Programming Language (crystal-lang.org) [aliases: cr]</td>
152
    </tr>
153
    <tr>
154
      <td>csharp</td>
155
      <td>a multi-paradigm language targeting .NET [aliases: c#,cs]</td>
156
    </tr>
157
    <tr>
158
      <td>css</td>
159
      <td>Cascading Style Sheets, used to style web pages</td>
160
    </tr>
161
    <tr>
162
      <td>csvs</td>
163
      <td>The CSV Schema Language (digital-preservation.github.io)</td>
164
    </tr>
165
    <tr>
166
      <td>cuda</td>
167
      <td>Compute Unified Device Architecture, used for programming with NVIDIA GPU</td>
168
    </tr>
169
    <tr>
170
      <td>cypher</td>
171
      <td>The Cypher query language (neo4j.com/docs/cypher-manual) [aliases: cypher]</td>
172
    </tr>
173
    <tr>
174
      <td>cython</td>
175
      <td>Cython and Pyrex source code (cython.org) [aliases: pyx,pyrex]</td>
176
    </tr>
177
    <tr>
178
      <td>d</td>
179
      <td>The D programming language(dlang.org) [aliases: dlang]</td>
180
    </tr>
181
    <tr>
182
      <td>dafny</td>
183
      <td>The Dafny programming language (github.com/dafny-lang/dafny)</td>
184
    </tr>
185
    <tr>
186
      <td>dart</td>
187
      <td>The Dart programming language (dart.dev)</td>
188
    </tr>
189
    <tr>
190
      <td>datastudio</td>
191
      <td>Datastudio scripting language</td>
192
    </tr>
193
    <tr>
194
      <td>diff</td>
195
      <td>Lexes unified diffs or patches [aliases: patch,udiff]</td>
196
    </tr>
197
    <tr>
198
      <td>digdag</td>
199
      <td>A simple, open source, multi-cloud workflow engine (https://www.digdag.io/)</td>
200
    </tr>
201
    <tr>
202
      <td>docker</td>
203
      <td>Dockerfile syntax [aliases: dockerfile,Dockerfile]</td>
204
    </tr>
205
    <tr>
206
      <td>dot</td>
207
      <td>graph description language [aliases: graphviz]</td>
208
    </tr>
209
    <tr>
210
      <td>ecl</td>
211
      <td>Enterprise Control Language (hpccsystems.com)</td>
212
    </tr>
213
    <tr>
214
      <td>eex</td>
215
      <td>Embedded Elixir [aliases: leex,heex]</td>
216
    </tr>
217
    <tr>
218
      <td>eiffel</td>
219
      <td>Eiffel programming language</td>
220
    </tr>
221
    <tr>
222
      <td>elixir</td>
223
      <td>Elixir language (elixir-lang.org) [aliases: elixir,exs]</td>
224
    </tr>
225
    <tr>
226
      <td>elm</td>
227
      <td>The Elm programming language (http://elm-lang.org/)</td>
228
    </tr>
229
    <tr>
230
      <td>email</td>
231
      <td>An email message [aliases: eml,e-mail]</td>
232
    </tr>
233
    <tr>
234
      <td>epp</td>
235
      <td>Embedded Puppet template files</td>
236
    </tr>
237
    <tr>
238
      <td>erb</td>
239
      <td>Embedded ruby template files [aliases: eruby,rhtml]</td>
240
    </tr>
241
    <tr>
242
      <td>erlang</td>
243
      <td>The Erlang programming language (erlang.org) [aliases: erl]</td>
244
    </tr>
245
    <tr>
246
      <td>escape</td>
247
      <td>A generic lexer for including escaped content - see Formatter.enable_escape! [aliases: esc]</td>
248
    </tr>
249
    <tr>
250
      <td>factor</td>
251
      <td>Factor, the practical stack language (factorcode.org)</td>
252
    </tr>
253
    <tr>
254
      <td>fluent</td>
255
      <td>Fluent localization files [aliases: ftl]</td>
256
    </tr>
257
    <tr>
258
      <td>fortran</td>
259
      <td>Fortran 2008 (free-form)</td>
260
    </tr>
261
    <tr>
262
      <td>freefem</td>
263
      <td>The FreeFEM programming language (freefem.org) [aliases: ff]</td>
264
    </tr>
265
    <tr>
266
      <td>fsharp</td>
267
      <td>F# (fsharp.net)</td>
268
    </tr>
269
    <tr>
270
      <td>gdscript</td>
271
      <td>The Godot Engine programming language (https://godotengine.org/) [aliases: gd,gdscript]</td>
272
    </tr>
273
    <tr>
274
      <td>ghc-cmm</td>
275
      <td>GHC Cmm is the intermediate representation of the GHC Haskell compiler [aliases: cmm]</td>
276
    </tr>
277
    <tr>
278
      <td>ghc-core</td>
279
      <td>Intermediate representation of the GHC Haskell compiler.</td>
280
    </tr>
281
    <tr>
282
      <td>gherkin</td>
283
      <td>A business-readable spec DSL (github.com/cucumber/cucumber/wiki/Gherkin) [aliases: cucumber,behat]</td>
284
    </tr>
285
    <tr>
286
      <td>glsl</td>
287
      <td>The GLSL shader language</td>
288
    </tr>
289
    <tr>
290
      <td>go</td>
291
      <td>The Go programming language (http://golang.org) [aliases: go,golang]</td>
292
    </tr>
293
    <tr>
294
      <td>gradle</td>
295
      <td>A powerful build system for the JVM</td>
296
    </tr>
297
    <tr>
298
      <td>graphql</td>
299
      <td>GraphQL</td>
300
    </tr>
301
    <tr>
302
      <td>groovy</td>
303
      <td>The Groovy programming language (http://www.groovy-lang.org/)</td>
304
    </tr>
305
    <tr>
306
      <td>hack</td>
307
      <td>The Hack programming language (hacklang.org) [aliases: hack,hh]</td>
308
    </tr>
309
    <tr>
310
      <td>haml</td>
311
      <td>The Haml templating system for Ruby (haml.info) [aliases: HAML]</td>
312
    </tr>
313
    <tr>
314
      <td>handlebars</td>
315
      <td>the Handlebars and Mustache templating languages [aliases: hbs,mustache]</td>
316
    </tr>
317
    <tr>
318
      <td>haskell</td>
319
      <td>The Haskell programming language (haskell.org) [aliases: hs]</td>
320
    </tr>
321
    <tr>
322
      <td>haxe</td>
323
      <td>Haxe Cross-platform Toolkit (http://haxe.org) [aliases: hx,haxe]</td>
324
    </tr>
325
    <tr>
326
      <td>hcl</td>
327
      <td>Hashicorp Configuration Language, used by Terraform and other Hashicorp tools</td>
328
    </tr>
329
    <tr>
330
      <td>hlsl</td>
331
      <td>HLSL, the High Level Shading Language for DirectX (docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl)</td>
332
    </tr>
333
    <tr>
334
      <td>hocon</td>
335
      <td>Human-Optimized Config Object Notation (https://github.com/lightbend/config)</td>
336
    </tr>
337
    <tr>
338
      <td>hql</td>
339
      <td>Hive Query Language SQL dialect</td>
340
    </tr>
341
    <tr>
342
      <td>html</td>
343
      <td>HTML, the markup language of the web</td>
344
    </tr>
345
    <tr>
346
      <td>http</td>
347
      <td>http requests and responses</td>
348
    </tr>
349
    <tr>
350
      <td>hylang</td>
351
      <td>The HyLang programming language (hylang.org) [aliases: hy]</td>
352
    </tr>
353
    <tr>
354
      <td>idlang</td>
355
      <td>Interactive Data Language</td>
356
    </tr>
357
    <tr>
358
      <td>idris</td>
359
      <td>The Idris programming language (idris-lang.org) [aliases: idr]</td>
360
    </tr>
361
    <tr>
362
      <td>igorpro</td>
363
      <td>WaveMetrics Igor Pro</td>
364
    </tr>
365
    <tr>
366
      <td>ini</td>
367
      <td>the INI configuration format</td>
368
    </tr>
369
    <tr>
370
      <td>io</td>
371
      <td>The IO programming language (http://iolanguage.com)</td>
372
    </tr>
373
    <tr>
374
      <td>irb</td>
375
      <td>Shell sessions in IRB or Pry [aliases: pry]</td>
376
    </tr>
377
    <tr>
378
      <td>irb_output</td>
379
      <td></td>
380
    </tr>
381
    <tr>
382
      <td>isabelle</td>
383
      <td>Isabelle theories (isabelle.in.tum.de) [aliases: isa,Isabelle]</td>
384
    </tr>
385
    <tr>
386
      <td>isbl</td>
387
      <td>The ISBL programming language</td>
388
    </tr>
389
    <tr>
390
      <td>j</td>
391
      <td>The J programming language (jsoftware.com)</td>
392
    </tr>
393
    <tr>
394
      <td>janet</td>
395
      <td>The Janet programming language (janet-lang.org) [aliases: jdn]</td>
396
    </tr>
397
    <tr>
398
      <td>java</td>
399
      <td>The Java programming language (java.com)</td>
400
    </tr>
401
    <tr>
402
      <td>javascript</td>
403
      <td>JavaScript, the browser scripting language [aliases: js]</td>
404
    </tr>
405
    <tr>
406
      <td>jinja</td>
407
      <td>Django/Jinja template engine (jinja.pocoo.org) [aliases: django]</td>
408
    </tr>
409
    <tr>
410
      <td>jsl</td>
411
      <td>The JMP Scripting Language (JSL) (jmp.com)</td>
412
    </tr>
413
    <tr>
414
      <td>json</td>
415
      <td>JavaScript Object Notation (json.org)</td>
416
    </tr>
417
    <tr>
418
      <td>json-doc</td>
419
      <td>JavaScript Object Notation with extensions for documentation [aliases: jsonc]</td>
420
    </tr>
421
    <tr>
422
      <td>jsonnet</td>
423
      <td>An elegant, formally-specified config language for JSON</td>
424
    </tr>
425
    <tr>
426
      <td>jsp</td>
427
      <td>JSP</td>
428
    </tr>
429
    <tr>
430
      <td>jsx</td>
431
      <td>An XML-like syntax extension to JavaScript (facebook.github.io/jsx/) [aliases: jsx,react]</td>
432
    </tr>
433
    <tr>
434
      <td>julia</td>
435
      <td>The Julia programming language [aliases: jl]</td>
436
    </tr>
437
    <tr>
438
      <td>kotlin</td>
439
      <td>Kotlin Programming Language (http://kotlinlang.org)</td>
440
    </tr>
441
    <tr>
442
      <td>lasso</td>
443
      <td>The Lasso programming language (lassosoft.com) [aliases: lassoscript]</td>
444
    </tr>
445
    <tr>
446
      <td>lean</td>
447
      <td>The Lean programming language (leanprover.github.io) [aliases: lean]</td>
448
    </tr>
449
    <tr>
450
      <td>liquid</td>
451
      <td>Liquid is a templating engine for Ruby (liquidmarkup.org)</td>
452
    </tr>
453
    <tr>
454
      <td>literate_coffeescript</td>
455
      <td>Literate coffeescript [aliases: litcoffee]</td>
456
    </tr>
457
    <tr>
458
      <td>literate_haskell</td>
459
      <td>Literate haskell [aliases: lithaskell,lhaskell,lhs]</td>
460
    </tr>
461
    <tr>
462
      <td>livescript</td>
463
      <td>LiveScript, a language which compiles to JavaScript (livescript.net) [aliases: ls]</td>
464
    </tr>
465
    <tr>
466
      <td>llvm</td>
467
      <td>The LLVM Compiler Infrastructure (http://llvm.org/)</td>
468
    </tr>
469
    <tr>
470
      <td>lua</td>
471
      <td>Lua (http://www.lua.org)</td>
472
    </tr>
473
    <tr>
474
      <td>lustre</td>
475
      <td>The Lustre programming language (Verimag)</td>
476
    </tr>
477
    <tr>
478
      <td>lutin</td>
479
      <td>The Lutin programming language (Verimag)</td>
480
    </tr>
481
    <tr>
482
      <td>m68k</td>
483
      <td>Motorola 68k Assembler</td>
484
    </tr>
485
    <tr>
486
      <td>magik</td>
487
      <td>Smallworld Magik</td>
488
    </tr>
489
    <tr>
490
      <td>make</td>
491
      <td>Makefile syntax [aliases: makefile,mf,gnumake,bsdmake]</td>
492
    </tr>
493
    <tr>
494
      <td>markdown</td>
495
      <td>Markdown, a light-weight markup language for authors [aliases: md,mkd]</td>
496
    </tr>
497
    <tr>
498
      <td>mason</td>
499
      <td>The HTML::Mason framework (https://metacpan.org/pod/HTML::Mason)</td>
500
    </tr>
501
    <tr>
502
      <td>mathematica</td>
503
      <td>Wolfram Mathematica, the world&#39;s definitive system for modern technical computing. [aliases: wl]</td>
504
    </tr>
505
    <tr>
506
      <td>matlab</td>
507
      <td>Matlab [aliases: m]</td>
508
    </tr>
509
    <tr>
510
      <td>meson</td>
511
      <td>Meson&#39;s specification language (mesonbuild.com)</td>
512
    </tr>
513
    <tr>
514
      <td>minizinc</td>
515
      <td>MiniZinc is a free and open-source constraint modeling language (minizinc.org)</td>
516
    </tr>
517
    <tr>
518
      <td>moonscript</td>
519
      <td>Moonscript (http://www.moonscript.org) [aliases: moon]</td>
520
    </tr>
521
    <tr>
522
      <td>mosel</td>
523
      <td>An optimization language used by Fico&#39;s Xpress.</td>
524
    </tr>
525
    <tr>
526
      <td>msgtrans</td>
527
      <td>RISC OS message translator messages file</td>
528
    </tr>
529
    <tr>
530
      <td>mxml</td>
531
      <td>MXML</td>
532
    </tr>
533
    <tr>
534
      <td>nasm</td>
535
      <td>Netwide Assembler</td>
536
    </tr>
537
    <tr>
538
      <td>nesasm</td>
539
      <td>Nesasm3 assembly (6502 asm) [aliases: nes]</td>
540
    </tr>
541
    <tr>
542
      <td>nginx</td>
543
      <td>configuration files for the nginx web server (nginx.org)</td>
544
    </tr>
545
    <tr>
546
      <td>nial</td>
547
      <td>The Nial programming language (nial-array-language.org)</td>
548
    </tr>
549
    <tr>
550
      <td>nim</td>
551
      <td>The Nim programming language (http://nim-lang.org/) [aliases: nimrod]</td>
552
    </tr>
553
    <tr>
554
      <td>nix</td>
555
      <td>The Nix expression language (https://nixos.org/nix/manual/#ch-expression-language) [aliases: nixos]</td>
556
    </tr>
557
    <tr>
558
      <td>objective_c</td>
559
      <td>an extension of C commonly used to write Apple software [aliases: objc,obj-c,obj_c,objectivec]</td>
560
    </tr>
561
    <tr>
562
      <td>objective_cpp</td>
563
      <td>an extension of C++ uncommonly used to write Apple software [aliases: objcpp,obj-cpp,obj_cpp,objectivecpp,objc++,obj-c++,obj_c++,objectivec++]</td>
564
    </tr>
565
    <tr>
566
      <td>ocaml</td>
567
      <td>Objective Caml (ocaml.org)</td>
568
    </tr>
569
    <tr>
570
      <td>ocl</td>
571
      <td>OMG Object Constraint Language (omg.org/spec/OCL) [aliases: OCL]</td>
572
    </tr>
573
    <tr>
574
      <td>openedge</td>
575
      <td>The OpenEdge ABL programming language [aliases: abl]</td>
576
    </tr>
577
    <tr>
578
      <td>opentype_feature_file</td>
579
      <td>Feature specifications for an OpenType font (adobe-type-tools.github.io/afdko) [aliases: fea,opentype,opentypefeature]</td>
580
    </tr>
581
    <tr>
582
      <td>pascal</td>
583
      <td>a procedural programming language commonly used as a teaching language.</td>
584
    </tr>
585
    <tr>
586
      <td>perl</td>
587
      <td>The Perl scripting language (perl.org) [aliases: pl]</td>
588
    </tr>
589
    <tr>
590
      <td>php</td>
591
      <td>The PHP scripting language (php.net) [aliases: php,php3,php4,php5]</td>
592
    </tr>
593
    <tr>
594
      <td>plaintext</td>
595
      <td>A boring lexer that doesn&#39;t highlight anything [aliases: text]</td>
596
    </tr>
597
    <tr>
598
      <td>plist</td>
599
      <td>plist [aliases: plist]</td>
600
    </tr>
601
    <tr>
602
      <td>plsql</td>
603
      <td>Procedural Language Structured Query Language for Oracle relational database</td>
604
    </tr>
605
    <tr>
606
      <td>pony</td>
607
      <td></td>
608
    </tr>
609
    <tr>
610
      <td>postscript</td>
611
      <td>The PostScript language (adobe.com/devnet/postscript.html) [aliases: postscr,postscript,ps,eps]</td>
612
    </tr>
613
    <tr>
614
      <td>powershell</td>
615
      <td>powershell [aliases: posh,microsoftshell,msshell]</td>
616
    </tr>
617
    <tr>
618
      <td>praat</td>
619
      <td>The Praat scripting language (praat.org)</td>
620
    </tr>
621
    <tr>
622
      <td>prolog</td>
623
      <td>The Prolog programming language (http://en.wikipedia.org/wiki/Prolog) [aliases: prolog]</td>
624
    </tr>
625
    <tr>
626
      <td>prometheus</td>
627
      <td>prometheus [aliases: prometheus]</td>
628
    </tr>
629
    <tr>
630
      <td>properties</td>
631
      <td>.properties config files for Java</td>
632
    </tr>
633
    <tr>
634
      <td>protobuf</td>
635
      <td>Google&#39;s language-neutral, platform-neutral, extensible mechanism for serializing structured data [aliases: proto]</td>
636
    </tr>
637
    <tr>
638
      <td>puppet</td>
639
      <td>The Puppet configuration management language (puppetlabs.org) [aliases: pp]</td>
640
    </tr>
641
    <tr>
642
      <td>python</td>
643
      <td>The Python programming language (python.org) [aliases: py]</td>
644
    </tr>
645
    <tr>
646
      <td>q</td>
647
      <td>The Q programming language (kx.com) [aliases: kdb+]</td>
648
    </tr>
649
    <tr>
650
      <td>qml</td>
651
      <td>QML, a UI markup language [aliases: qml]</td>
652
    </tr>
653
    <tr>
654
      <td>r</td>
655
      <td>The R statistics language (r-project.org) [aliases: r,R,s,S]</td>
656
    </tr>
657
    <tr>
658
      <td>racket</td>
659
      <td>Racket is a Lisp descended from Scheme (racket-lang.org)</td>
660
    </tr>
661
    <tr>
662
      <td>reasonml</td>
663
      <td>New syntax on top of OCaml ecosystem (reasonml.github.io)</td>
664
    </tr>
665
    <tr>
666
      <td>rego</td>
667
      <td>The Rego open-policy-agent (OPA) policy language (openpolicyagent.org)</td>
668
    </tr>
669
    <tr>
670
      <td>rescript</td>
671
      <td>The ReScript programming language (rescript-lang.org)</td>
672
    </tr>
673
    <tr>
674
      <td>rml</td>
675
      <td>A system agnostic domain-specific language for runtime monitoring and verification (https://rmlatdibris.github.io/)</td>
676
    </tr>
677
    <tr>
678
      <td>robot_framework</td>
679
      <td>Robot Framework is a generic open source automation testing framework (robotframework.org) [aliases: robot,robot-framework]</td>
680
    </tr>
681
    <tr>
682
      <td>ruby</td>
683
      <td>The Ruby programming language (ruby-lang.org) [aliases: rb]</td>
684
    </tr>
685
    <tr>
686
      <td>rust</td>
687
      <td>The Rust programming language (rust-lang.org) [aliases: rs,rust,no_run,rs,no_run,rust,ignore,rs,ignore,rust,should_panic,rs,should_panic]</td>
688
    </tr>
689
    <tr>
690
      <td>sas</td>
691
      <td>SAS (Statistical Analysis Software)</td>
692
    </tr>
693
    <tr>
694
      <td>sass</td>
695
      <td>The Sass stylesheet language language (sass-lang.com)</td>
696
    </tr>
697
    <tr>
698
      <td>scala</td>
699
      <td>The Scala programming language (scala-lang.org) [aliases: scala]</td>
700
    </tr>
701
    <tr>
702
      <td>scheme</td>
703
      <td>The Scheme variant of Lisp</td>
704
    </tr>
705
    <tr>
706
      <td>scss</td>
707
      <td>SCSS stylesheets (sass-lang.com)</td>
708
    </tr>
709
    <tr>
710
      <td>sed</td>
711
      <td>sed, the ultimate stream editor</td>
712
    </tr>
713
    <tr>
714
      <td>shell</td>
715
      <td>Various shell languages, including sh and bash [aliases: bash,zsh,ksh,sh]</td>
716
    </tr>
717
    <tr>
718
      <td>sieve</td>
719
      <td>mail filtering language</td>
720
    </tr>
721
    <tr>
722
      <td>slice</td>
723
      <td>Specification Language for Ice (doc.zeroc.com)</td>
724
    </tr>
725
    <tr>
726
      <td>slim</td>
727
      <td>The Slim template language</td>
728
    </tr>
729
    <tr>
730
      <td>smalltalk</td>
731
      <td>The Smalltalk programming language [aliases: st,squeak]</td>
732
    </tr>
733
    <tr>
734
      <td>smarty</td>
735
      <td>Smarty Template Engine [aliases: smarty]</td>
736
    </tr>
737
    <tr>
738
      <td>sml</td>
739
      <td>Standard ML [aliases: ml]</td>
740
    </tr>
741
    <tr>
742
      <td>sparql</td>
743
      <td>Semantic Query Language, for RDF data</td>
744
    </tr>
745
    <tr>
746
      <td>sqf</td>
747
      <td>Status Quo Function, a Real Virtuality engine scripting language</td>
748
    </tr>
749
    <tr>
750
      <td>sql</td>
751
      <td>Structured Query Language, for relational databases</td>
752
    </tr>
753
    <tr>
754
      <td>ssh</td>
755
      <td>A lexer for SSH configuration files</td>
756
    </tr>
757
    <tr>
758
      <td>stan</td>
759
      <td>Stan Modeling Language (mc-stan.org)</td>
760
    </tr>
761
    <tr>
762
      <td>stata</td>
763
      <td>The Stata programming language (www.stata.com)</td>
764
    </tr>
765
    <tr>
766
      <td>supercollider</td>
767
      <td>A cross-platform interpreted programming language for sound synthesis, algorithmic composition, and realtime performance</td>
768
    </tr>
769
    <tr>
770
      <td>svelte</td>
771
      <td>Svelte single-file components (https://svelte.dev/)</td>
772
    </tr>
773
    <tr>
774
      <td>swift</td>
775
      <td>Multi paradigm, compiled programming language developed by Apple for iOS and OS X development. (developer.apple.com/swift)</td>
776
    </tr>
777
    <tr>
778
      <td>systemd</td>
779
      <td>A lexer for systemd unit files [aliases: unit-file]</td>
780
    </tr>
781
    <tr>
782
      <td>syzlang</td>
783
      <td>Syscall description language used by syzkaller</td>
784
    </tr>
785
    <tr>
786
      <td>syzprog</td>
787
      <td>Program description language used by syzkaller</td>
788
    </tr>
789
    <tr>
790
      <td>tap</td>
791
      <td>Test Anything Protocol [aliases: tap]</td>
792
    </tr>
793
    <tr>
794
      <td>tcl</td>
795
      <td>The Tool Command Language (tcl.tk)</td>
796
    </tr>
797
    <tr>
798
      <td>terraform</td>
799
      <td>Terraform HCL Interpolations [aliases: tf]</td>
800
    </tr>
801
    <tr>
802
      <td>tex</td>
803
      <td>The TeX typesetting system [aliases: TeX,LaTeX,latex]</td>
804
    </tr>
805
    <tr>
806
      <td>toml</td>
807
      <td>the TOML configuration format (https://github.com/toml-lang/toml)</td>
808
    </tr>
809
    <tr>
810
      <td>tsx</td>
811
      <td>TypeScript-compatible JSX (www.typescriptlang.org/docs/handbook/jsx.html)</td>
812
    </tr>
813
    <tr>
814
      <td>ttcn3</td>
815
      <td>The TTCN3 programming language (ttcn-3.org)</td>
816
    </tr>
817
    <tr>
818
      <td>tulip</td>
819
      <td>the tulip programming language (twitter.com/tuliplang) [aliases: tulip]</td>
820
    </tr>
821
    <tr>
822
      <td>turtle</td>
823
      <td>Terse RDF Triple Language, TriG</td>
824
    </tr>
825
    <tr>
826
      <td>twig</td>
827
      <td>Twig template engine (twig.sensiolabs.org)</td>
828
    </tr>
829
    <tr>
830
      <td>typescript</td>
831
      <td>TypeScript, a superset of JavaScript (https://www.typescriptlang.org/) [aliases: ts]</td>
832
    </tr>
833
    <tr>
834
      <td>vala</td>
835
      <td>A programming language similar to csharp.</td>
836
    </tr>
837
    <tr>
838
      <td>vb</td>
839
      <td>Visual Basic [aliases: visualbasic]</td>
840
    </tr>
841
    <tr>
842
      <td>vcl</td>
843
      <td>The configuration language for Varnish HTTP Cache (varnish-cache.org) [aliases: varnishconf,varnish]</td>
844
    </tr>
845
    <tr>
846
      <td>velocity</td>
847
      <td>Velocity is a Java-based template engine (velocity.apache.org)</td>
848
    </tr>
849
    <tr>
850
      <td>verilog</td>
851
      <td>The System Verilog hardware description language</td>
852
    </tr>
853
    <tr>
854
      <td>vhdl</td>
855
      <td>Very High Speed Integrated Circuit Hardware Description Language</td>
856
    </tr>
857
    <tr>
858
      <td>viml</td>
859
      <td>VimL, the scripting language for the Vim editor (vim.org) [aliases: vim,vimscript,ex]</td>
860
    </tr>
861
    <tr>
862
      <td>vue</td>
863
      <td>Vue.js single-file components [aliases: vuejs]</td>
864
    </tr>
865
    <tr>
866
      <td>wollok</td>
867
      <td>Wollok lang</td>
868
    </tr>
869
    <tr>
870
      <td>xml</td>
871
      <td>&lt;desc for=&quot;this-lexer&quot;&gt;XML&lt;/desc&gt;</td>
872
    </tr>
873
    <tr>
874
      <td>xojo</td>
875
      <td>Xojo [aliases: realbasic]</td>
876
    </tr>
877
    <tr>
878
      <td>xpath</td>
879
      <td>XML Path Language (XPath) 3.1</td>
880
    </tr>
881
    <tr>
882
      <td>xquery</td>
883
      <td>XQuery 3.1: An XML Query Language</td>
884
    </tr>
885
    <tr>
886
      <td>yaml</td>
887
      <td>Yaml Ain&#39;t Markup Language (yaml.org) [aliases: yml]</td>
888
    </tr>
889
    <tr>
890
      <td>yang</td>
891
      <td>Lexer for the YANG 1.1 modeling language (RFC7950)</td>
892
    </tr>
893
    <tr>
894
      <td>zig</td>
895
      <td>The Zig programming language (ziglang.org) [aliases: zir]</td>
896
    </tr>
17
    <% @available_lexers.each do |lexer| %>
18
      <tr>
19
        <td><%= lexer.tag %></td>
20
        <td>
21
          <%= lexer.desc %>
22
          <%= " [aliases: #{lexer.aliases.uniq.join(', ')}]" if lexer.aliases.any? %>
23
        </td>
24
      </tr>
25
    <% end %>
897 26
  </table>
898 27
</body>
899 28
</html>
test/functional/help_controller_test.rb
87 87
    assert_response :success
88 88

  
89 89
    assert_select 'h1', :text =>  "List of languages supported by Redmine code highlighter"
90

  
91
    # 1-based index + 1 for the header row
92
    index = Rouge::Lexer.all.sort_by(&:tag).index(Rouge::Lexers::Ruby) + 2
93
    assert_select "table tr:nth-of-type(#{index})" do
94
      assert_select '>td:nth-of-type(1)', :text => 'ruby'
95
      assert_select '>td:nth-of-type(2)', :text => /The Ruby programming language/
96
      assert_select '>td:nth-of-type(2)', :text => /\[aliases: rb\]/
97
    end
90 98
  end
91 99
end
    (1-1/1)