syntax

On this page

Description:

This key defines how the editor parses your content for syntax highlighting.

Should be set to the language of the code going into the input.

You can also configure this key using the naming convention: syntax is assumed to be the section preceding the normalized _code_block suffix (e.g. my_javascript_code_block resolves to javascript).

Appears in:
└── _inputs
    └── *
        └── Code Input
            └── options
                └── syntax
Type:
string
Allowed values:
c_cpp
clojure
cobol
coffee
csharp
css
d
dart
diff
dockerfile
eiffel
elm
erlang
forth
fortran
fsharp
gherkin
golang
groovy
haskell
haskell_cabal
haxe
html
java
javascript
json
julia
kotlin
less
liquid
livescript
lua
markdown
mysql
nginx
nsis
objectivec
ocaml
pascal
pgsql
pig
powershell
properties
protobuf
puppet
python
r
ruby
rust
sass
scala
scheme
scss
sh
sql
stylus
swift
tcl
toml
turtle
typescript
vbscript
velocity
verilog
vhdl
xml
xquery
yaml
Examples:
Open in a new tab