Tech/HowTo/Mediawiki Code Block in a List

From lathama
< Tech‎ | HowTo
Jump to navigation Jump to search

Example

  1. One
    Stuffs
    
  2. Two
    Multiline stuffs
    and more
    with line numbers
    
  3. Three
    Single Line without line number
    

Wiki Source

# One<syntaxhighlight lang="bash">Stuffs</syntaxhighlight>
# Two<syntaxhighlight line lang="bash">
Multiline stuffs
and more
with line numbers</syntaxhighlight>
# Three<syntaxhighlight lang="bash">
Single Line without line number</syntaxhighlight>

Notes

<syntaxhighlight> is preferred but <source> will work to support legacy pages.

References

AppleScript, Assembly, Asymptote, Awk, Befunge, Boo, BrainFuck, C, C++, C#, Clojure, CoffeeScript, ColdFusion, Common Lisp, Coq, Cryptol, Crystal, Cython, D, Dart, Delphi, Dylan, Elm, Erlang, Ezhil, Factor, Fancy, Fortran, F#, GAP, Gherkin, GL shaders, Groovy, Haskell, IDL, Io, Java, JavaScript, Lasso, LLVM, Logtalk, Lua, Matlab, MiniD, Modelica, Modula-2, MuPad, Nemerle, Nimrod, Objective-C, Objective-J, Octave, OCaml, PHP, Perl, PovRay, PostScript, PowerShell, Prolog, Python 2.x and 3.x (incl. console sessions and tracebacks), R, REBOL, Red, Redcode, Ruby, Rust, S, S-Plus, Scala, Scheme, Scilab, Smalltalk, SNOBOL, Tcl, Vala, Verilog, VHDL, Visual Basic.NET, Visual FoxPro, XQuery, Zephir