# Output Formats

- [`html`](#html)
- [`html-min`](#html-min)
- [`json`](#json)
- [`json-min`](#json-min)
- [`noop`](#noop)
- [`svg`](#svg)
- [`svg-min`](#svg-min)
- [`terminal`](#terminal)
- [`terminal16`](#terminal16)
- [`terminal16m`](#terminal16m)
- [`terminal256`](#terminal256)
- [`terminal8`](#terminal8)
- [`tokens`](#tokens)

## `html`

```html
<html>
<style type="text/css">
/* Background */ .bg { color: #f8f8f2; background-color: #272822; }
/* PreWrapper */ .chroma { color: #f8f8f2; background-color: #272822; }
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineHighlight */ .chroma .hl { background-color: #3c3d38 }
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* Line */ .chroma .line { display: flex; }
/* Keyword */ .chroma .k { color: #66d9ef }
/* KeywordConstant */ .chroma .kc { color: #66d9ef }
/* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
/* KeywordPseudo */ .chroma .kp { color: #66d9ef }
/* KeywordReserved */ .chroma .kr { color: #66d9ef }
/* KeywordType */ .chroma .kt { color: #66d9ef }
/* NameAttribute */ .chroma .na { color: #a6e22e }
/* NameClass */ .chroma .nc { color: #a6e22e }
/* NameConstant */ .chroma .no { color: #66d9ef }
/* NameDecorator */ .chroma .nd { color: #a6e22e }
/* NameException */ .chroma .ne { color: #a6e22e }
/* NameOther */ .chroma .nx { color: #a6e22e }
/* NameTag */ .chroma .nt { color: #f92672 }
/* NameFunction */ .chroma .nf { color: #a6e22e }
/* NameFunctionMagic */ .chroma .fm { color: #a6e22e }
/* Literal */ .chroma .l { color: #ae81ff }
/* LiteralDate */ .chroma .ld { color: #e6db74 }
/* LiteralString */ .chroma .s { color: #e6db74 }
/* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
/* LiteralStringChar */ .chroma .sc { color: #e6db74 }
/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
/* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
/* LiteralStringEscape */ .chroma .se { color: #ae81ff }
/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
/* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
/* LiteralStringOther */ .chroma .sx { color: #e6db74 }
/* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
/* LiteralNumber */ .chroma .m { color: #ae81ff }
/* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
/* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
/* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
/* Operator */ .chroma .o { color: #f92672 }
/* OperatorWord */ .chroma .ow { color: #f92672 }
/* Comment */ .chroma .c { color: #75715e }
/* CommentHashbang */ .chroma .ch { color: #75715e }
/* CommentMultiline */ .chroma .cm { color: #75715e }
/* CommentSingle */ .chroma .c1 { color: #75715e }
/* CommentSpecial */ .chroma .cs { color: #75715e }
/* CommentPreproc */ .chroma .cp { color: #75715e }
/* CommentPreprocFile */ .chroma .cpf { color: #75715e }
/* GenericDeleted */ .chroma .gd { color: #f92672 }
/* GenericEmph */ .chroma .ge { font-style: italic }
/* GenericInserted */ .chroma .gi { color: #a6e22e }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #75715e }
body { color:#f8f8f2;background-color:#272822;; }
</style><body class="bg">
<pre class="chroma"><code><span class="line"><span class="cl"><span class="kn">package</span> <span class="nx">main</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="s">&#34;fmt&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kd">func</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">	<span class="nx">fmt</span><span class="p">.</span><span class="nf">Println</span><span class="p">(</span><span class="s">&#34;hello world&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span></span></span></code></pre>
</body>
</html>
```

## `html-min`

```html
<html><style>.bg{color:#f8f8f2;background-color:#272822}.chroma{color:#f8f8f2;background-color:#272822}.chroma .err{color:#960050;background-color:#1e0010}.chroma .lnlinks{outline:none;text-decoration:none;color:inherit}.chroma .lntd{vertical-align:top;padding:0;margin:0;border:0}.chroma .lntable{border-spacing:0;padding:0;margin:0;border:0}.chroma .hl{background-color:#3c3d38}.chroma .lnt{white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f}.chroma .ln{white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f}.chroma .line{display:flex}.chroma .k{color:#66d9ef}.chroma .kc{color:#66d9ef}.chroma .kd{color:#66d9ef}.chroma .kn{color:#f92672}.chroma .kp{color:#66d9ef}.chroma .kr{color:#66d9ef}.chroma .kt{color:#66d9ef}.chroma .na{color:#a6e22e}.chroma .nc{color:#a6e22e}.chroma .no{color:#66d9ef}.chroma .nd{color:#a6e22e}.chroma .ne{color:#a6e22e}.chroma .nx{color:#a6e22e}.chroma .nt{color:#f92672}.chroma .nf{color:#a6e22e}.chroma .fm{color:#a6e22e}.chroma .l{color:#ae81ff}.chroma .ld{color:#e6db74}.chroma .s{color:#e6db74}.chroma .sa{color:#e6db74}.chroma .sb{color:#e6db74}.chroma .sc{color:#e6db74}.chroma .dl{color:#e6db74}.chroma .sd{color:#e6db74}.chroma .s2{color:#e6db74}.chroma .se{color:#ae81ff}.chroma .sh{color:#e6db74}.chroma .si{color:#e6db74}.chroma .sx{color:#e6db74}.chroma .sr{color:#e6db74}.chroma .s1{color:#e6db74}.chroma .ss{color:#e6db74}.chroma .m{color:#ae81ff}.chroma .mb{color:#ae81ff}.chroma .mf{color:#ae81ff}.chroma .mh{color:#ae81ff}.chroma .mi{color:#ae81ff}.chroma .il{color:#ae81ff}.chroma .mo{color:#ae81ff}.chroma .o{color:#f92672}.chroma .ow{color:#f92672}.chroma .c{color:#75715e}.chroma .ch{color:#75715e}.chroma .cm{color:#75715e}.chroma .c1{color:#75715e}.chroma .cs{color:#75715e}.chroma .cp{color:#75715e}.chroma .cpf{color:#75715e}.chroma .gd{color:#f92672}.chroma .ge{font-style:italic}.chroma .gi{color:#a6e22e}.chroma .gs{font-weight:700}.chroma .gu{color:#75715e}body{color:#f8f8f2;background-color:#272822}</style><body class="bg"><pre class="chroma"><code><span class="line"><span class="cl"><span class="kn">package</span> <span class="nx">main</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="s">&#34;fmt&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kd">func</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">	<span class="nx">fmt</span><span class="p">.</span><span class="nf">Println</span><span class="p">(</span><span class="s">&#34;hello world&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span></span></span></code></pre></body></html>
```

## `json`

```json
[
  {"type":"KeywordNamespace","value":"package"},
  {"type":"Text","value":" "},
  {"type":"NameOther","value":"main"},
  {"type":"Text","value":"\n\n"},
  {"type":"KeywordNamespace","value":"import"},
  {"type":"Text","value":" "},
  {"type":"LiteralString","value":"\"fmt\""},
  {"type":"Text","value":"\n\n"},
  {"type":"KeywordDeclaration","value":"func"},
  {"type":"Text","value":" "},
  {"type":"NameFunction","value":"main"},
  {"type":"Punctuation","value":"()"},
  {"type":"Text","value":" "},
  {"type":"Punctuation","value":"{"},
  {"type":"Text","value":"\n\t"},
  {"type":"NameOther","value":"fmt"},
  {"type":"Punctuation","value":"."},
  {"type":"NameFunction","value":"Println"},
  {"type":"Punctuation","value":"("},
  {"type":"LiteralString","value":"\"hello world\""},
  {"type":"Punctuation","value":")"},
  {"type":"Text","value":"\n"},
  {"type":"Punctuation","value":"}"}
]
```

## `json-min`

```json
[{"type":"KeywordNamespace","value":"package"},{"type":"Text","value":" "},{"type":"NameOther","value":"main"},{"type":"Text","value":"\n\n"},{"type":"KeywordNamespace","value":"import"},{"type":"Text","value":" "},{"type":"LiteralString","value":"\"fmt\""},{"type":"Text","value":"\n\n"},{"type":"KeywordDeclaration","value":"func"},{"type":"Text","value":" "},{"type":"NameFunction","value":"main"},{"type":"Punctuation","value":"()"},{"type":"Text","value":" "},{"type":"Punctuation","value":"{"},{"type":"Text","value":"\n\t"},{"type":"NameOther","value":"fmt"},{"type":"Punctuation","value":"."},{"type":"NameFunction","value":"Println"},{"type":"Punctuation","value":"("},{"type":"LiteralString","value":"\"hello world\""},{"type":"Punctuation","value":")"},{"type":"Text","value":"\n"},{"type":"Punctuation","value":"}"}]
```

## `noop`

```noop
package main

import "fmt"

func main() {
	fmt.Println("hello world")
}
```

## `svg`

```svg
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="248px" height="144px" xmlns="http://www.w3.org/2000/svg">
<style>
@font-face {
	font-family: 'Liberation Mono';
	src: url(data:application/x-font-woff;charset=utf-8;base64,[encoded data, 233248 characters]) format('woff');'
	font-weight: normal;
	font-style: normal;
}
</style><rect width="100%" height="100%" fill="#272822"/>
<g font-family="Liberation Mono" font-size="14px" fill="#f8f8f2">
<text x="0" y="1.200000em" xml:space="preserve"><tspan fill="#f92672">package</tspan>&#160;<tspan fill="#a6e22e">main</tspan>
</text><text x="0" y="2.400000em" xml:space="preserve">
</text><text x="0" y="3.600000em" xml:space="preserve"><tspan fill="#f92672">import</tspan>&#160;<tspan fill="#e6db74">&quot;fmt&quot;</tspan>
</text><text x="0" y="4.800000em" xml:space="preserve">
</text><text x="0" y="6.000000em" xml:space="preserve"><tspan fill="#66d9ef">func</tspan>&#160;<tspan fill="#a6e22e">main</tspan>()&#160;{
</text><text x="0" y="7.200000em" xml:space="preserve">&#160;&#160;&#160;&#160;<tspan fill="#a6e22e">fmt</tspan>.<tspan fill="#a6e22e">Println</tspan>(<tspan fill="#e6db74">&quot;hello&#160;world&quot;</tspan>)
</text><text x="0" y="8.400000em" xml:space="preserve">}</text>
</g>
</svg>
```

## `svg-min`

```svg
<svg width="248" height="144" xmlns="http://www.w3.org/2000/svg"><style>@font-face {
font-family: 'Liberation Mono';
src: url(data:application/x-font-woff;charset=utf-8;base64,[encoded data, 233248 characters]) format('woff');'
font-weight: normal;
font-style: normal;
}</style><rect width="100%" height="100%" fill="#272822"/><g font-family="Liberation Mono" font-size="14" fill="#f8f8f2"><text x="0" y="1.2em"><tspan fill="#f92672">package</tspan>&#160;<tspan fill="#a6e22e">main</tspan></text><text x="0" y="2.4em"/><text x="0" y="3.6em"><tspan fill="#f92672">import</tspan>&#160;<tspan fill="#e6db74">"fmt"</tspan></text><text x="0" y="4.8em"/><text x="0" y="6em"><tspan fill="#66d9ef">func</tspan>&#160;<tspan fill="#a6e22e">main</tspan>()&#160;{</text><text x="0" y="7.2em">&#160;&#160;&#160;&#160;<tspan fill="#a6e22e">fmt</tspan>.<tspan fill="#a6e22e">Println</tspan>(<tspan fill="#e6db74">"hello&#160;world"</tspan>)</text><text x="0" y="8.4em">}</text></g></svg>
```

## `terminal`

```terminal
\x1b[1m\x1b[31mpackage\x1b[0m\x1b[1m\x1b[37m \x1b[0m\x1b[1m\x1b[33mmain\x1b[0m\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[31mimport\x1b[0m\x1b[1m\x1b[37m \x1b[0m\x1b[37m\"fmt\"\x1b[0m\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[36mfunc\x1b[0m\x1b[1m\x1b[37m \x1b[0m\x1b[1m\x1b[33mmain\x1b[0m\x1b[1m\x1b[37m()\x1b[0m\x1b[1m\x1b[37m \x1b[0m\x1b[1m\x1b[37m{\x1b[0m\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[37m\t\x1b[0m\x1b[1m\x1b[33mfmt\x1b[0m\x1b[1m\x1b[37m.\x1b[0m\x1b[1m\x1b[33mPrintln\x1b[0m\x1b[1m\x1b[37m(\x1b[0m\x1b[37m\"hello world\"\x1b[0m\x1b[1m\x1b[37m)\x1b[0m\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[37m}\x1b[0m
```

## `terminal16`

```terminal16
\x1b[91mpackage\x1b[0m\x1b[97m \x1b[0m\x1b[93mmain\x1b[0m\x1b[97m\x1b[0m
\x1b[97m\x1b[0m
\x1b[91mimport\x1b[0m\x1b[97m \x1b[0m\x1b[37m\"fmt\"\x1b[0m\x1b[97m\x1b[0m
\x1b[97m\x1b[0m
\x1b[96mfunc\x1b[0m\x1b[97m \x1b[0m\x1b[93mmain\x1b[0m\x1b[97m()\x1b[0m\x1b[97m \x1b[0m\x1b[97m{\x1b[0m\x1b[97m\x1b[0m
\x1b[97m\t\x1b[0m\x1b[93mfmt\x1b[0m\x1b[97m.\x1b[0m\x1b[93mPrintln\x1b[0m\x1b[97m(\x1b[0m\x1b[37m\"hello world\"\x1b[0m\x1b[97m)\x1b[0m\x1b[97m\x1b[0m
\x1b[97m}\x1b[0m
```

## `terminal16m`

```terminal16m
\x1b[38;2;249;38;114mpackage\x1b[0m\x1b[38;2;248;248;242m \x1b[0m\x1b[38;2;166;226;46mmain\x1b[0m\x1b[38;2;248;248;242m\x1b[0m
\x1b[38;2;248;248;242m\x1b[0m
\x1b[38;2;249;38;114mimport\x1b[0m\x1b[38;2;248;248;242m \x1b[0m\x1b[38;2;230;219;116m\"fmt\"\x1b[0m\x1b[38;2;248;248;242m\x1b[0m
\x1b[38;2;248;248;242m\x1b[0m
\x1b[38;2;102;217;239mfunc\x1b[0m\x1b[38;2;248;248;242m \x1b[0m\x1b[38;2;166;226;46mmain\x1b[0m\x1b[38;2;248;248;242m()\x1b[0m\x1b[38;2;248;248;242m \x1b[0m\x1b[38;2;248;248;242m{\x1b[0m\x1b[38;2;248;248;242m\x1b[0m
\x1b[38;2;248;248;242m\t\x1b[0m\x1b[38;2;166;226;46mfmt\x1b[0m\x1b[38;2;248;248;242m.\x1b[0m\x1b[38;2;166;226;46mPrintln\x1b[0m\x1b[38;2;248;248;242m(\x1b[0m\x1b[38;2;230;219;116m\"hello world\"\x1b[0m\x1b[38;2;248;248;242m)\x1b[0m\x1b[38;2;248;248;242m\x1b[0m
\x1b[38;2;248;248;242m}\x1b[0m
```

## `terminal256`

```terminal256
\x1b[38;5;197mpackage\x1b[0m\x1b[38;5;231m \x1b[0m\x1b[38;5;148mmain\x1b[0m\x1b[38;5;231m\x1b[0m
\x1b[38;5;231m\x1b[0m
\x1b[38;5;197mimport\x1b[0m\x1b[38;5;231m \x1b[0m\x1b[38;5;186m\"fmt\"\x1b[0m\x1b[38;5;231m\x1b[0m
\x1b[38;5;231m\x1b[0m
\x1b[38;5;81mfunc\x1b[0m\x1b[38;5;231m \x1b[0m\x1b[38;5;148mmain\x1b[0m\x1b[38;5;231m()\x1b[0m\x1b[38;5;231m \x1b[0m\x1b[38;5;231m{\x1b[0m\x1b[38;5;231m\x1b[0m
\x1b[38;5;231m\t\x1b[0m\x1b[38;5;148mfmt\x1b[0m\x1b[38;5;231m.\x1b[0m\x1b[38;5;148mPrintln\x1b[0m\x1b[38;5;231m(\x1b[0m\x1b[38;5;186m\"hello world\"\x1b[0m\x1b[38;5;231m)\x1b[0m\x1b[38;5;231m\x1b[0m
\x1b[38;5;231m}\x1b[0m
```

## `terminal8`

```terminal8
\x1b[1m\x1b[31mpackage\x1b[0m\x1b[1m\x1b[37m \x1b[0m\x1b[1m\x1b[33mmain\x1b[0m\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[31mimport\x1b[0m\x1b[1m\x1b[37m \x1b[0m\x1b[37m\"fmt\"\x1b[0m\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[36mfunc\x1b[0m\x1b[1m\x1b[37m \x1b[0m\x1b[1m\x1b[33mmain\x1b[0m\x1b[1m\x1b[37m()\x1b[0m\x1b[1m\x1b[37m \x1b[0m\x1b[1m\x1b[37m{\x1b[0m\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[37m\t\x1b[0m\x1b[1m\x1b[33mfmt\x1b[0m\x1b[1m\x1b[37m.\x1b[0m\x1b[1m\x1b[33mPrintln\x1b[0m\x1b[1m\x1b[37m(\x1b[0m\x1b[37m\"hello world\"\x1b[0m\x1b[1m\x1b[37m)\x1b[0m\x1b[1m\x1b[37m\x1b[0m
\x1b[1m\x1b[37m}\x1b[0m
```

## `tokens`

```tokens
&Token{KeywordNamespace, "package"}
&Token{Text, " "}
&Token{NameOther, "main"}
&Token{Text, "\n\n"}
&Token{KeywordNamespace, "import"}
&Token{Text, " "}
&Token{LiteralString, "\"fmt\""}
&Token{Text, "\n\n"}
&Token{KeywordDeclaration, "func"}
&Token{Text, " "}
&Token{NameFunction, "main"}
&Token{Punctuation, "()"}
&Token{Text, " "}
&Token{Punctuation, "{"}
&Token{Text, "\n\t"}
&Token{NameOther, "fmt"}
&Token{Punctuation, "."}
&Token{NameFunction, "Println"}
&Token{Punctuation, "("}
&Token{LiteralString, "\"hello world\""}
&Token{Punctuation, ")"}
&Token{Text, "\n"}
&Token{Punctuation, "}"}
```

