Template:Syntaxhighlight/doc

Simple wrapper around the ‎<syntaxhighlight> tag to show syntax-highlighted text. Unlike <syntaxhighlight>, text that does not fit on the screen will be wrapped.

Usage[edit]

Parameters[edit]

  • lang:
Code Language
4cs 4CS
6502acme MOS 6502 (6510) ACME Cross Assembler
6502kickass MOS 6502 (6510) Kick Assembler
6502tasm MOS 6502 (6510) TASM/64TASS
68000devpac Motorola 68000 - HiSoft Devpac ST 2 Assembler
abap w:ABAP
actionscript w:ActionScript
actionscript3 ActionScript3
ada Ada
algol68 w:ALGOL 68
apache Apache configuration
applescript w:AppleScript
apt_sources APT sources
arm ARM Assembler
asm Assembly
asp Active Server Pages (ASP)
asymptote Asymptote
autoconf w:Autoconf
autohotkey w:AutoHotkey
autoit w:AutoIt
avisynth w:AviSynth
awk w:AWK
bascomavr BASCOM AVR
bash Bash
basic4gl w:Basic4GL
bf w:Brainfuck
bibtex w:BibTeX
blitzbasic w:Blitz BASIC
bnf w:Backus–Naur form
boo Boo
c C
c_loadrunner C Loadrunner
c_mac C (Mac)
caddcl AutoCAD DCL
cadlisp w:AutoLISP
cfdg CFDG
cfm w:ColdFusion Markup Language
chaiscript w:ChaiScript
cil Common Intermediate Language (CIL)
clojure w:Clojure
clp Control Language Program
cmake w:CMake
cobol w:COBOL
coffeescript w:CoffeeScript
cpp w:C++
cpp-qt C++ (Qt toolkit)
csharp C#
css Cascading Style Sheets (CSS)
cuesheet Cue sheet
d D
dcl w:DIGITAL Command Language
dcpu16 w:DCPU-16
dcs Data Conversion System
delphi Delphi
diff w:Diff
div DIV
dos w:DOS batch file
dot DOT
e E
ecmascript w:ECMAScript
eiffel Eiffel
email Email (mbox \ eml \ RFC format)
epc Enerscript
erlang Erlang
euphoria Euphoria
f1 Formula One
fo FO
fortran w:Fortran
freebasic w:FreeBASIC
freeswitch w:FreeSWITCH
fsharp w:Fsharp
gambas Gambas
gdb w:GDB
genero Genero
genie Genie
gettext w:gettext
glsl OpenGL Shading Language (GLSL)
gml Game Maker Language (GML)
gnuplot w:gnuplot
go Go
groovy Groovy
gwbasic w:GW-BASIC
haskell Haskell
haxe w:Haxe
hicest HicEst
hq9plus HQ9+
html4strict w:HTML
html5 w:HTML5
icon Icon
idl Uno IDL
ini INI
inno Inno
intercal w:INTERCAL
io Io
j J
java Java
java5 Java(TM) 2 Platform Standard Edition 5.0
javascript w:JavaScript
jcl w:Job Control Language
kixtart w:KiXtart
klonec Klone C
klonecpp Klone C++
latex w:LaTeX
lb w:Liberty BASIC
ldif w:LDAP Data Interchange Format
lisp Lisp
llvm w:LLVM
locobasic w:Locomotive BASIC
logtalk w:Logtalk
lolcode w:LOLCODE
lotusformulas w:Formula language
lotusscript w:LotusScript
lscript LightWave 3D
lsl2 w:Linden Scripting Language
lua Lua
magiksf Magik
m68k Motorola 68000 Assembler
make make
mapbasic w:MapBasic
matlab MATLAB M
mirc w:mIRC scripting language
mmix w:MMIX
modula2 w:Modula-2
modula3 w:Modula-3
mpasm Microchip Assembler
mxml w:MXML
mysql w:MySQL
nagios w:Nagios
netrexx w:NetRexx
newlisp w:NewLISP
nsis Nullsoft Scriptable Install System (NSIS)
oberon2 Oberon-2
objc w:Objective-C
objeck Objeck
ocaml w:OCaml
ocaml-brief w:OCaml
ocl w:Operational Control Language
octave Octave
oobas OpenOffice.org Basic
oorexx w:Object REXX
oracle11 Oracle 11 SQL
oracle8 Oracle 8 SQL
oxygene Oxygene
oz Oz
parasail ParaSail
parigp w:PARI/GP
pascal Pascal
pcre w:Perl Compatible Regular Expressions
per per
perl w:Perl
perl6 w:Perl 6
pf PF
php w:PHP
php-brief w:PHP
pic16 PIC assembly language
pike Pike
pixelbender Pixel Bender
pli w:PL/I
plsql w:PL/SQL
postgresql w:PostgreSQL
povray Persistence of Vision Raytracer
powerbuilder w:PowerBuilder
powershell w:PowerShell
proftpd w:ProFTPD
progress w:OpenEdge Advanced Business Language
prolog w:Prolog
properties Properties file
providex w:ProvideX
purebasic w:PureBasic
pycon Python
pys60 PyS60
python Python
q Q
qbasic QBasic/QuickBASIC
rails Rails
rebol w:Rebol
reg w:Windows Registry
rexx w:Rexx
robots robots.txt
rpg RPG
rpgii RPG II
rpgiii RPG III
rpg400 RPG/400
rpgiv RPG IV
rpmspec RPM Spec files
rsplus R
ruby Ruby
sas SAS
scala Scala
scheme Scheme
scilab w:Scilab
sdlbasic w:SdlBasic
smalltalk w:Smalltalk
smarty Smarty
spark SPARK
sparql w:SPARQL
sql w:SQL
stonescript StoneScript (Scripting language for ShiVa3D)
systemverilog w:SystemVerilog
tcl w:Tcl
teraterm w:Tera Term
text w:Plain text
thinbasic w:thinBasic
tsql w:Transact-SQL
typoscript TypoScript
unicon Unicon
upc w:Unified Parallel C
urbi w:URBI
uscript w:UnrealScript
vala Vala
vb Visual Basic
vbnet w:Visual Basic .NET
vedit w:VEDIT
verilog w:Verilog
vhdl w:VHDL
vim w:Vim script
visualfoxpro w:Visual FoxPro
visualprolog w:Visual Prolog
whitespace Whitespace
whois w:Whois
winbatch w:Winbatch
xml w:XML
xorg_conf w:Xorg.conf
yaml w:YAML
xpp w:Microsoft Dynamics AX
z80 ZiLOG Z80 Assembler
zxbasic ZXBasic
  • code: The contents of the syntax highlighted block.

Examples[edit]

{{syntaxhighlight|lang=javascript|code=mw.util.addPortletLink('p-personal', '/w/index.php?title=Special:MyPage/Sandbox&action=edit&preload=Template%3AUser_sandbox%2Fpreload&editintro=Template%3AUser_sandbox', 'My sandbox', 'pt-mysandbox', 'Go to my sandbox');}}

mw.util.addPortletLink('p-personal', '/w/index.php?title=Special:MyPage/Sandbox&action=edit&preload=Template%3AUser_sandbox%2Fpreload&editintro=Template%3AUser_sandbox', 'My sandbox', 'pt-mysandbox', 'Go to my sandbox');

Notes[edit]

There is not yet a "wikitext" or "mediawiki" language code. Use "html+handlebars" or "moin" instead.