Resaltador de sintaxis

Resalta tokens según el lenguaje elegido sin reindentar ni ejecutar el código.

Entrada: TextoResultado: HTML con vista aislada

Entrada de texto

Opciones

Ejemplos

Highlight a JSON problem response

Entrada

{"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>
Idioma
json
Highlight a parameterized SQL lookup

Entrada

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>;
Idioma
sql
Highlight a Python list comprehension

Entrada

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>)]
Idioma
python
Highlight a shell command without running it

Entrada

curl --head https://example.org

Expected answer

curl --<span class="hljs-built_in">head</span> https://example.org
Idioma
bash
Highlight an HTTP response header block

Entrada

a398dfe7caef49e1ebb4c273.bin

76 bytes

Descargar

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

Idioma
http

Parámetros

ParámetroValor predeterminadoEntrada y opciones
Idiomadetección automáticaTexto
194 Opciones disponibles
  • detección automática
  • 1c
  • abnf
  • registro de acceso
  • scriptscripto de acción
  • ada
  • Angelscript
  • apache
  • Applescript
  • sala de juegos
  • Arduino
  • armasm
  • xml
  • asciidoc
  • aspecto
  • autohotkey
  • autoit
  • Avrasm
  • awk
  • axapta
  • de fiesta
  • básico
  • BNF
  • cabeza de mierda
  • c
  • cal
  • capnproto
  • Ceilán
  • limpio
  • clojure
  • clojure-repl
  • cmake
  • coffeescript
  • Coq
  • porque
  • CPP
  • CRMSH
  • cristal
  • csharp
  • CSP
  • CSS
  • d
  • markdown
  • dardo
  • Delfos
  • diferencia
  • django
  • DNS
  • dockerfile
  • dos
  • dsconfig
  • DTS
  • polvo
  • EBNF
  • elixir
  • olmo
  • ruby
  • erb
  • erlang-repl
  • erlang
  • Excel
  • arreglar
  • flix
  • fortran
  • Freedesktop
  • fsharp
  • gams
  • gauss
  • gcode
  • de pepinillo
  • 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
  • oxígeno
  • parser3
  • pf
  • pgsql
  • php
  • php-plantilla
  • texto plano
  • pony
  • powershell
  • procesamiento
  • perfil
  • prolog
  • propiedades
  • protobuf
  • puppet
  • purebasic
  • python
  • python-repl
  • q
  • qml
  • r
  • reasonml
  • rib
  • roboconf
  • routeros
  • rsl
  • ruleslanguage
  • rust
  • sas
  • scala
  • scheme
  • scilab
  • scss
  • shell
  • smali
  • smalltalk
  • sml
  • sqf
  • sql
  • stan
  • stata
  • step21
  • stylus
  • subunit
  • swift
  • taggerscript
  • yaml
  • tap
  • tcl
  • thrift
  • tp
  • twig
  • typescript
  • vala
  • vbnet
  • vbscript
  • vbscript-html
  • verilog
  • vhdl
  • vim
  • wasm
  • wren
  • x86asm
  • xl
  • xquery
  • zephir

Herramientas relacionadas

Ordenar código

Referencia de la operación

Ver la documentación técnica original (English)