A code fence is a sequence of at least three consecutive backtick characters
`
or tildes ~
. (Tildes and backticks cannot be mixed.) A fenced code
block begins with a code fence, indented no more than three spaces.
The line with the opening code fence may optionally contain some text following the code fence; this is trimmed of leading and trailing whitespace and called the info string.
Language Available language mode(s)
- ASP.NET
asp, aspx
- C
c
- C++
c++, cpp, cplusplus
- C#
cs, csharp
- Clojure
clj, cljc, cljx, clojure
- CSS
css, less, sass, scss, styl, stylus
- cURL
curl
- D
d
- Dart
dart
- Diff
diff
- Docker
dockerfile
- Erlang
erl, erlang
- Go
go
- GraphQL
gql, graphql
- Groovy
gradle, groovy
- Handlebars
handlebars, hbs
- HTML/XML
html, xhtml, xml
- HTTP
http
- Java
java
- JavaScript
coffeescript, ecmascript, javascript, js, node
- JSX
jsx
- JSON
json
- Julia
jl, julia
- Kotlin
kotlin, kt
- Liquid
liquid
- Lua
lua
- Markdown
markdown
- Objective-C
objc, objectivec,
- Objective-C++
objc++, objcpp, objectivecpp, objectivecplusplus,
- OCaml
ocaml, ml
- Perl
perl, pl
- PHP
php
- PowerShell
powershell, ps1
- Python
py, python
- R
r
- React
jsx
- Ruby
jruby, macruby, rake, rb, rbx, ruby
- Rust
rs, rust
- Scala
scala
- Shell
bash, sh, shell, zsh
- Solidity
sol, solidity
- SQL
cql, mssql, mysql, plsql, postgres, postgresql, pgsql, sql, sqlite
- Swift
swift
- TypeScript
ts, typescript
- YAML
yaml, yml