Syntax highlighting styles

Overview

Hugo performs syntax highlighting when rendering code samples. You may place code samples in Markdown using fenced code blocks or the built-in highlight shortcode.

```python
a, b = 3, 4
print(a, b)
```

{{< highlight python >}}
a, b = 3, 4
print(a, b)
{{< /highlight >}}

Both methods use the highlight function to render code samples to HTML, and the highlight function uses the Chroma syntax highlighter.

Chroma performs lexical analysis with a lexer that is unique to each code language, applying different CSS properties to language components such as functions, variables, keywords, literals, operators, and comments. A collection of CSS properties is, in this context, a highlighting style.

Configuration

Use these site configuration settings to control the style:

[markup.highlight]
style = 'monokai' # default is monokai
noClasses = true  # default is true
style
(string) Specify any of the predefined styles. This setting is irrelevant when using an external style sheet. The default is monokai.
noClasses
(bool) If true, Chroma adds HTML style attributes while rendering your code sample. If false, Chroma adds HTML class attributes instead, requiring an external style sheet. The default is true.

Comparison

When noClasses is true, you can set the default highlighting style in your site configuration, and override it as needed with the style highlighting option:

```python {style=emacs}
a, b = 3, 4
print(a, b)
```

{{< highlight python "style=perldoc" >}}
a, b = 3, 4
print(a, b)
{{< /highlight >}}

When noClasses is false, you must create an external style sheet. Hugo makes that easy for you with:

hugo gen chromastyles --style xcode > xcode.css

When using an external style sheet, you can override the highlighting style by setting noClasses to true:

```python {noClasses=true style=emacs}
a, b = 3, 4
print(a, b)
```

{{< highlight python "noClasses=true,style=perldoc" >}}
a, b = 3, 4
print(a, b)
{{< /highlight >}}

When you set highlighting options for a fenced code block, separate the key/value pairs with either spaces or commas. When you set highlighting options for the highlight shortcode, you must separate the key/value pairs with commas.

With syntax highlighting, there are tradeoffs between inline style attributes and external style sheets:

 InlineExternal
Zero configuration✔️
Adhoc styling✔️✔️
Custom styles✔️
Compatible with CSPs✔️

Depending on configuration, a web server’s Content Security Policy (CSP) may block inline styles. This is the most important factor to consider when choosing between the two methods.

Predefined styles

Click through the examples below to see how Hugo renders various languages in each of the predefined highlighting styles.

abap

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

algol

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

algol_nu

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

arduino

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

autumn

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

average

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

base16-snazzy

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

borland

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

bw

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

catppuccin-frappe

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

catppuccin-latte

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

catppuccin-macchiato

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

catppuccin-mocha

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

colorful

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

doom-one

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

doom-one2

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

dracula

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

emacs

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

friendly

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

fruity

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

github

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

github-dark

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

gruvbox

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

gruvbox-light

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

hr_dark

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

hr_high_contrast

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

igor

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

lovelace

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

manni

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

modus-operandi

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

modus-vivendi

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

monokai

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

monokailight

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

murphy

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

native

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

nord

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

onedark

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

onesenterprise

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

paraiso-dark

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

paraiso-light

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

pastie

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

perldoc

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

pygments

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

rainbow_dash

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

rose-pine

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

rose-pine-dawn

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

rose-pine-moon

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

rrt

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

solarized-dark

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

solarized-dark256

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

solarized-light

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

swapoff

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

tango

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

tokyonight-day

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

tokyonight-moon

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

tokyonight-night

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

tokyonight-storm

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

trac

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

vim

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

vs

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

vulcan

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

witchhazel

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

xcode

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'

xcode-dark

css
body {
  font-size: 16px;  /* comment */
}
html
<a href="/about.html">Example</a>  <!-- comment -->
go-html-template
{{ with $.Page.Params.content }}
  {{ . | $.Page.RenderString }}  {{/* comment */}}
{{ end }}
javascript
if ([1,"one",2,"two"].includes(value)){
  console.log("Number is either 1 or 2.");  // comment
}
markdown
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example")  <!-- comment -->
toml
[params]
bool = true  # comment
string = 'foo'
Last modified: