Supported Code Block Syntaxes

Below is a list of syntax names and aliases supported in MacDown’s fenced block code markup. You can turn on this feature by enabling Syntax highlighted code block in the Rendering Preference pane.

Language IDNotes
abap
actionscript
apacheconfConfiguration syntax for the Apache HTTP Server.
apl
applescript
asciidoc
aspnetASP.NET markup in .aspx files.
autohotkey
autoit
bash
basic
batch
bison
brainfuck
c
c++Alias to cpp.
clikeGeneric syntax for C-like languages.
coffeeAlias to coffeescript.
coffee-scriptAlias to coffeescript.
coffeescript
cppC++
crystal
csAlias to csharp.
csharpC#
css
d
dart
diff
docker
eiffel
elixir
erlang
fortran
fsharp
gherkin
gitSyntax used in Git commit messages.
glsl
go
graphvizAlias to dot.
groovy
gvAlias to dot.
haml
handlebars
haskell
haxe
htmlAlias to markup.
httpSyntax used in HTTP requests and responses.
icon
inform7
iniWindows INI format.
j
jade
java
javascript
jlAlias to julia.
jsAlias to javascript.
jsonAlias to javascript.
jsx
julia
keyman
kotlin
latex
less
lolcode
lua
makefile
markdown
markupGeneric *ML syntax, e.g. HTML, XML, etc.
matlab
mel
mizar
monkey
nasmThe Netwide Assembler.
nginx
nim
nix
nsis
obj-cAlias to objectivec.
objcAlias to objectivec.
objective-cAlias to objectivec.
objectivecObjective-C.
ocaml
oz
parigp
parser
pascal
perl
php
powershell
processing
prolog
puppet
pure
pyAlias to python.
pythonPython 2.
q
qore
r
rbAlias to ruby.
rest
rip
roboconf
ruby
rust
sasSAS. Not an alias to sass.
sassSASS (SASS)
scala
scheme
scssSASS (SCSS)
shAlias to bash.
smalltalk
smarty
sql
stylus
swiftApple’s Swift programming language. Not the parallel scripting language.
tcl
textile
twig
typescript
verilog
vhdl
vim
wiki
xmlAlias to markup.
yamlYAML

Contributing

MacDown accepts pull requests on aliases to existing languages, but not new syntax highlighting rules. If you wish to provide additional language definitions and/or themes, please visit Prism’s project page and submit them there. I will include updates from Prism after your pull request is accepted.