Skip to content

HTML Code Language for Syntax Highlighting

Terry L edited this page Nov 22, 2019 · 4 revisions

How it works

HTML

<pre>
    <code class="language-php">
    echo "Hello, world!";
    echo "This is an example."
    </code>
</pre>

Markdown

    ```php
    echo "Hello, world!";
    echo "This is an example."
    ```

Code list

code type note
html HTML -
xml XML -
svg SVG -
mathml MathML -
css CSS -
clike C-like -
javascript JavaScript -
abap ABAP -
actionscript ActionScript -
ada Ada -
apacheconf Apache Configuration -
apl APL -
applescript AppleScript -
arduino Arduino -
arff ARFF -
asciidoc AsciiDoc -
asm6502 6502 Assembly -
aspnet ASP dot NET / C# -
autohotkey AutoHotkey -
autoit AutoIt -
bash Bash -
basic BASIC -
batch Batch -
bison Bison -
brainfuck Brainfuck -
bro Bro -
c C -
csharp C# -
cpp C++ -
coffeescript CoffeeScript -
clojure Clojure -
crystal Crystal -
csp Content-Security-Policy -
css-extras CSS Extras -
d D -
dart Dart -
diff Diff -
django Django/Jinja2 -
docker Docker -
eiffel Eiffel -
elixir Elixir -
elm Elm -
erb ERB -
erlang Erlang -
fsharp F# -
flow Flow -
fortran Fortran -
gedcom GEDCOM -
gherkin Gherkin -
git Git -
glsl GLSL -
go Go -
graphql GraphQL -
groovy Groovy -
haml Haml -
handlebars Handlebars -
haskell Haskell -
haxe Haxe -
http HTTP -
hpkp HTTP Public-Key-Pins -
hsts HTTP Strict-Transport-Security -
ichigojam IchigoJam -
icon Icon -
inform7 Inform 7 -
ini Ini -
io Io -
j J -
java Java -
jolie Jolie -
json JSON -
julia Julia -
keyman Keyman -
kotlin Kotlin -
latex LaTeX -
less Less -
liquid Liquid -
lisp Lisp -
livescript LiveScript -
lolcode LOLCODE -
lua Lua -
makefile Makefile -
markdown Markdown -
markup-templating Markup templating -
matlab MATLAB -
mel MEL -
mizar Mizar -
monkey Monkey -
n4js N4JS -
nasm NASM -
nginx nginx -
nim Nim -
nix Nix -
nsis NSIS -
objectivec Objective-C -
ocaml OCaml -
opencl OpenCL -
oz Oz -
parigp PARI/GP -
parser Parser -
pascal Pascal -
perl Perl -
php PHP -
php-extras PHP Extras -
plsql PL/SQL -
powershell PowerShell -
processing Processing -
prolog Prolog -
properties .properties -
protobuf Protocol Buffers -
pug Pug -
puppet Puppet -
pure Pure -
python Python -
q Q (kdb+ database) -
qore Qore -
r R -
jsx React JSX -
tsx React TSX -
renpy Ren'py -
reason Reason -
rest reST (reStructuredText) -
rip Rip -
roboconf Roboconf -
ruby Ruby -
rust Rust -
sas SAS -
sass Sass (Sass) -
scss Sass (Scss) -
scala Scala -
scheme Scheme -
smalltalk Smalltalk -
smarty Smarty -
sql SQL -
soy Soy (Closure Template) -
stylus Stylus -
swift Swift -
tcl Tcl -
textile Textile -
twig Twig -
typescript TypeScript -
vbnet VB dot Net -
velocity Velocity -
verilog Verilog -
vhdl VHDL -
vim vim -
visual-basic Visual Basic -
wasm WebAssembly -
wiki Wiki markup -
xeora Xeora -
xojo Xojo (REALbasic) -
yaml YAML -
Clone this wiki locally