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 ID | Notes |
---|---|
abap | |
actionscript | |
apacheconf | Configuration syntax for the Apache HTTP Server. |
apl | |
applescript | |
asciidoc | |
aspnet | ASP.NET markup in .aspx files. |
autohotkey | |
autoit | |
bash | |
basic | |
batch | |
bison | |
brainfuck | |
c | |
c++ | Alias to cpp . |
clike | Generic syntax for C-like languages. |
coffee | Alias to coffeescript . |
coffee-script | Alias to coffeescript . |
coffeescript | |
cpp | C++ |
crystal | |
cs | Alias to csharp . |
csharp | C# |
css | |
d | |
dart | |
diff | |
docker | |
eiffel | |
elixir | |
erlang | |
fortran | |
fsharp | |
gherkin | |
git | Syntax used in Git commit messages. |
glsl | |
go | |
graphviz | Alias to dot . |
groovy | |
gv | Alias to dot . |
haml | |
handlebars | |
haskell | |
haxe | |
html | Alias to markup . |
http | Syntax used in HTTP requests and responses. |
icon | |
inform7 | |
ini | Windows INI format. |
j | |
jade | |
java | |
javascript | |
jl | Alias to julia . |
js | Alias to javascript . |
json | Alias to javascript . |
jsx | |
julia | |
keyman | |
kotlin | |
latex | |
less | |
lolcode | |
lua | |
makefile | |
markdown | |
markup | Generic *ML syntax, e.g. HTML, XML, etc. |
matlab | |
mel | |
mizar | |
monkey | |
nasm | The Netwide Assembler. |
nginx | |
nim | |
nix | |
nsis | |
obj-c | Alias to objectivec . |
objc | Alias to objectivec . |
objective-c | Alias to objectivec . |
objectivec | Objective-C. |
ocaml | |
oz | |
parigp | |
parser | |
pascal | |
perl | |
php | |
powershell | |
processing | |
prolog | |
puppet | |
pure | |
py | Alias to python . |
python | Python 2. |
q | |
qore | |
r | |
rb | Alias to ruby . |
rest | |
rip | |
roboconf | |
ruby | |
rust | |
sas | SAS. Not an alias to sass . |
sass | SASS (SASS) |
scala | |
scheme | |
scss | SASS (SCSS) |
sh | Alias to bash . |
smalltalk | |
smarty | |
sql | |
stylus | |
swift | Apple’s Swift programming language. Not the parallel scripting language. |
tcl | |
textile | |
twig | |
typescript | |
verilog | |
vhdl | |
vim | |
wiki | |
xml | Alias to markup . |
yaml | YAML |
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.