語法醒目提示

語法醒目提示: 根據所選編程語言醒目提示源碼標记,不会重新縮進或执行代碼。

免费 · 無需注册

文本輸入

執行後即可複制或下載結果。

工具選項

关于此工具 語法醒目提示

根據所選編程語言醒目提示源碼標记,不会重新縮進或执行代碼。

輸入: 文本. 結果: 在沙盒中预覽的 HTML.

示例

点击“试用示例”即可載入公開示例及其設定並執行。

此示例使用的設定
参數示例值輸入與選項
語言javascript文本
194 可用選項
  • auto detect
  • 1c
  • abnf
  • accesslog
  • actionscript
  • ada
  • angelscript
  • apache
  • applescript
  • arcade
  • arduino
  • armasm
  • xml
  • asciidoc
  • aspectj
  • autohotkey
  • autoit
  • avrasm
  • awk
  • axapta
  • bash
  • basic
  • bnf
  • brainfuck
  • c
  • cal
  • capnproto
  • ceylon
  • clean
  • clojure
  • clojure-repl
  • cmake
  • coffeescript
  • coq
  • cos
  • cpp
  • crmsh
  • crystal
  • 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-template
  • 明文
  • pony
  • powershell
  • processing
  • profile
  • prolog
  • properties
  • 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
  • 步進21
  • 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

輸入

const answer = 42;

結果

結果會顯示在預覽區,也可以下載產生的內容進行檢查。

参數

参數默認值輸入與選項
語言auto detect文本
194 可用選項
  • auto detect
  • 1c
  • abnf
  • accesslog
  • actionscript
  • ada
  • angelscript
  • apache
  • applescript
  • arcade
  • arduino
  • armasm
  • xml
  • asciidoc
  • aspectj
  • autohotkey
  • autoit
  • avrasm
  • awk
  • axapta
  • bash
  • basic
  • bnf
  • brainfuck
  • c
  • cal
  • capnproto
  • ceylon
  • clean
  • clojure
  • clojure-repl
  • cmake
  • coffeescript
  • coq
  • cos
  • cpp
  • crmsh
  • crystal
  • 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-template
  • 明文
  • pony
  • powershell
  • processing
  • profile
  • prolog
  • properties
  • 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
  • 步進21
  • 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

如何理解結果

格式化調整排版,壓縮去除多余空白。輸入必须符合对應語法;簽章或檢查碼依赖原始位元組时,请保留源檔案。

如何使用本页

  1. 粘贴内容或打開本地檔案。
  2. 按需調整工具選項,然後点击“執行工具”。
  3. 複制結果或下載原始輸出位元組。

輸入和結果不会自动上傳、公開或寫入网址。資料處理在浏覽器中進行;HTTP 请求和基于 HTTPS 的 DNS 工具会發送你主动執行的網路请求。可打開不超過 128 MiB 的檔案,單次輸出上限為 64 MiB;部分操作有更低的限制。预覽可能截短,下載保留完整輸出。文本按 UTF-8 處理,精确位元組應通過檔案輸入。

相关工具

程式碼整理

操作参考

查看原始技术文檔 (English)