Beispiele
Highlight a JSON problem response
Eingabe
{"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>- Sprache
json
Highlight a parameterized SQL lookup
Eingabe
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>;- Sprache
sql
Highlight a Python list comprehension
Eingabe
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>)]- Sprache
python
Highlight a shell command without running it
Eingabe
curl --head https://example.orgExpected answer
curl --<span class="hljs-built_in">head</span> https://example.org- Sprache
bash
Highlight an HTTP response header block
Eingabe
a398dfe7caef49e1ebb4c273.bin
76 bytes
HerunterladenExpected 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
- Sprache
http
Parameter
| Parameter | Standardwert | Eingabe und Auswahl |
|---|---|---|
| Sprache | automatisch erkennen | Text194 Verfügbare Optionen
|