Examples
Highlight a JSON problem response
Input
{"type":"about:blank","title":"Not Found","status":404}Expected answer
<span class="hljs-punctuation">{</span><span class="hljs-attr">"type"</span><span class="hljs-punctuation">:</span><span class="hljs-string">"about:blank"</span><span class="hljs-punctuation">,</span><span class="hljs-attr">"title"</span><span class="hljs-punctuation">:</span><span class="hljs-string">"Not Found"</span><span class="hljs-punctuation">,</span><span class="hljs-attr">"status"</span><span class="hljs-punctuation">:</span><span class="hljs-number">404</span><span class="hljs-punctuation">}</span>- Language
json
Highlight a parameterized SQL lookup
Input
SELECT name FROM planets WHERE moons > 1;Expected answer
<span class="hljs-keyword">SELECT</span> name <span class="hljs-keyword">FROM</span> planets <span class="hljs-keyword">WHERE</span> moons <span class="hljs-operator">></span> <span class="hljs-number">1</span>;- Language
sql
Highlight a Python list comprehension
Input
squares = [n * n for n in range(5)]Expected answer
squares = [n * n <span class="hljs-keyword">for</span> n <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(<span class="hljs-number">5</span>)]- Language
python
Highlight a shell command without running it
Input
curl --head https://example.orgExpected answer
curl --<span class="hljs-built_in">head</span> https://example.org- Language
bash
Highlight an HTTP response header block
Input
a398dfe7caef49e1ebb4c273.bin
76 bytes
DownloadExpected answer
<span class="hljs-meta">HTTP/1.1</span> <span class="hljs-number">200</span> OK
<span class="hljs-attribute">Content-Type</span><span class="hljs-punctuation">: </span>application/json
<span class="hljs-attribute">Cache-Control</span><span class="hljs-punctuation">: </span>no-store
- Language
http
Use one of the 'Beautify' operations for that.
Format reference: Syntax highlighter background and specification
Parameters
| Parameter | Default value | Input and choices |
|---|---|---|
| Language | auto detect | Text194 Available choices
|