Syntax-Highlighter

Quellcode je Sprache hervorheben, ohne ihn neu einzurücken oder auszuführen.

Eingabe: TextErgebnis: HTML mit isolierter Vorschau

Texteingabe

Optionen

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">&quot;type&quot;</span><span class="hljs-punctuation">:</span><span class="hljs-string">&quot;about:blank&quot;</span><span class="hljs-punctuation">,</span><span class="hljs-attr">&quot;title&quot;</span><span class="hljs-punctuation">:</span><span class="hljs-string">&quot;Not Found&quot;</span><span class="hljs-punctuation">,</span><span class="hljs-attr">&quot;status&quot;</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">&gt;</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.org

Expected 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

Herunterladen

Expected 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

ParameterStandardwertEingabe und Auswahl
Spracheautomatisch erkennenText
194 Verfügbare Optionen
  • automatisch erkennen
  • 1c
  • abnf
  • Zugriffsprotokoll
  • actionscript
  • ada
  • angelscript
  • apache
  • applescript
  • Arcade
  • Arduino
  • armasm
  • XML
  • asciidoc
  • aspectj
  • autohotkey
  • autoit
  • avrasm
  • awk
  • axapta
  • bash
  • Basic
  • bnf
  • brainfuck
  • c
  • cal
  • capnproto
  • ceylon
  • sauber
  • clojure
  • clojure-repl
  • cmake
  • coffeescript
  • coq
  • cos
  • cpp
  • crmsh
  • kristall
  • csharp
  • csp
  • css
  • d
  • markdown
  • dart
  • delphi
  • diff
  • django
  • dns
  • dockerfile
  • dos
  • dsconfig
  • dts
  • dust
  • ebnf
  • elixir
  • elm
  • ruby
  • erb
  • erlang-repl
  • erlang
  • excel
  • fix
  • flix
  • fortran
  • freedesktop
  • fsharp
  • gams
  • gauss
  • gcode
  • gherkin
  • glsl
  • gml
  • go
  • golo
  • gradle
  • graphql
  • groovy
  • haml
  • handlebars
  • haskell
  • haxe
  • hsp
  • http
  • hy
  • inform7
  • ini
  • irpf90
  • isbl
  • java
  • javascript
  • jboss-cli
  • json
  • julia
  • julia-repl
  • kotlin
  • lasso
  • latex
  • ldif
  • leaf
  • less
  • lisp
  • livecodeserver
  • livescript
  • llvm
  • lsl
  • lua
  • makefile
  • mathematica
  • matlab
  • maxima
  • mel
  • mercury
  • mipsasm
  • mizar
  • perl
  • mojolicious
  • monkey
  • moonscript
  • n1ql
  • nestedtext
  • nginx
  • nim
  • nix
  • node-repl
  • nsis
  • objectivec
  • ocaml
  • openscad
  • oxygene
  • parser3
  • pf
  • pgsql
  • php
  • php-vorlage
  • klartext
  • pony
  • powershell
  • verarbeitung
  • profil
  • prolog
  • eigenschaften
  • protobuf
  • puppet
  • purebasic
  • python
  • python-repl
  • q
  • qml
  • r
  • reasonml
  • rib
  • roboconf
  • routeros
  • rsl
  • regelsprache
  • rust
  • sas
  • scala
  • scheme
  • scilab
  • scss
  • shell
  • smali
  • Smalltalk
  • sml
  • sqf
  • SQL
  • Stan
  • Stata
  • step21
  • Stilus
  • Untereinheit
  • Swift
  • Taggerskript
  • YAML
  • Tippen
  • TCL
  • Thrift
  • TP
  • Twig
  • TypeScript
  • Vala
  • VB.NET
  • VBScript
  • VBScript-HTML
  • Verilog
  • VHDL
  • Vim
  • WASM
  • Wren
  • x86-ASM
  • XL
  • XQuery
  • Zephir

Ähnliche Werkzeuge

Code-Bereinigung

Referenz zur Operation

Technische Originaldokumentation ansehen (English)