Skip to Content
Documents📖 Reference🌐 Languages

Code Editor Language Support

Language support is how the snippet editor chooses syntax highlighting and completion: by file extension (e.g. .py → Python) or snippet run environment (e.g. shell, python). Current list:

Document index ¡ Reference


By File Extension

ExtensionLanguageNotes
.js, .jsxjavascriptJavaScript
.ts, .tsxtypescriptTypeScript
.pypythonPython
.sh, .bash, .zshshellShell
.jsonjsonJSON
.html, .htmhtmlHTML
.csscssCSS
.scss, .lessscss / lessSCSS / Less
.mdmarkdownMarkdown
.yaml, .ymlyamlYAML
.xmlxmlXML
.sqlsqlSQL
.go, .rs, .java, .kt, .swiftgo / rust / java / kotlin / swiftetc.
.c, .h, .cpp, .hppc / cppC / C++
.php, .rb, .lua, .rphp / ruby / lua / retc.
.ps1, .psm1powershellPowerShell
.txtplaintextPlain text

By Run Environment

EnvironmentLanguageNotes
plainplaintextPlain text
richmarkdownMarkdown
shellshellShell
applescriptapplescriptAppleScript
jsjavascriptJavaScript
powershellpowershellPowerShell execution; highlight prefers .ps1
pythonpythonPython

Built-in highlighting

The snippet code editor highlights many languages, including plaintext, javascript, typescript, json, html, css, scss, less, markdown, xml, yaml, sql, python, java, c, cpp, csharp, go, rust, php, ruby, swift, kotlin, lua, r, shell, powershell, assembly, objective-c, plus clojure / dart / haskell / scala and others (full list: Settings → editor language). Custom languages can be registered in Settings.

Details follow the current app version.

Last updated