Syntax Highlighting
March 14, 2023 ยท View on GitHub
Full list of supported languages and their corresponding aliases to use.
actionscript
var some = new actionscript();
apacheconf
ServerName apacheconf
applescript
display alert "Hello, world!"
aspnet
<asp:Label runat="server" id="aspnet"></asp:Label>
bash
$some = "bash";
basic
Dim basic As Integer
batch
set some="batch"
c
char some = "c";
coffeescript
some = "coffeescript"
cpp
char some = "cpp";
csharp
string some = "csharp";
css
#some { content: 'css'; }
d
int mySum(int a, int b) pure nothrow
dart
var some = "dart";
diff
not changed
- removed
+ added
docker
MAINTAINER docker
elixir
IO.puts "Hello World!"
erlang
module(erlang).
flow
function foo(x: ?number): string {}
fsharp
let mutable x = 1
go
type go string
graphql
type Query {hero: Character}
haskell
haskell :: Str -> String
hcl
variable "a" {}
html
<p id="some">html</p>
java
public static final void main java();
javascript
let some = 'javascript';
js
const some = 'js'
json
{"some": "json"}
jsx
const element = <h1>Hello, {name}</h1>
latex
$\sqrt{3x-1}+(1+x)^2$
lua
local some = "lua"
makefile
check: makefile
markdown
`some` **markdown**
nginx
server_name nginx;
objectivec
char some = "objectivec";
ocaml
let sum xs = List.fold_left (fun acc x -> acc + x) 0 xs;;
perl
$some = "perl";
php
$some = "php";
prolog
some('prolog', 1972)
python
some = 'python'
r
x <- c(1, 2, 3, 4, 5, 6)
reason
let merge: (('a, 'a) => bool, list('a), list('a)) => list('a);
ruby
some = "ruby"
rust
let some = 'rust';
sass
@include sass;
scala
def formatApples(x: Int) = "I ate %d apples".format(x)
scheme
(define some 'scheme')
scss
@include scss;
smalltalk
'some smalltalk'
sql
select * from `language` where `name` = 'sql';
swift
var some = "swift"
typescript
var some: string = "typescript";
vbnet
Function ReadLine(Optional prompt As String = Nothing) As String
wasm
(import "math" "exp" (func $exp (param f64) (result f64))
xml
<some name="xml"></some>
yaml
- language: yaml