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:
By File Extension
| Extension | Language | Notes |
|---|---|---|
.js, .jsx | javascript | JavaScript |
.ts, .tsx | typescript | TypeScript |
.py | python | Python |
.sh, .bash, .zsh | shell | Shell |
.json | json | JSON |
.html, .htm | html | HTML |
.css | css | CSS |
.scss, .less | scss / less | SCSS / Less |
.md | markdown | Markdown |
.yaml, .yml | yaml | YAML |
.xml | xml | XML |
.sql | sql | SQL |
.go, .rs, .java, .kt, .swift | go / rust / java / kotlin / swift | etc. |
.c, .h, .cpp, .hpp | c / cpp | C / C++ |
.php, .rb, .lua, .r | php / ruby / lua / r | etc. |
.ps1, .psm1 | powershell | PowerShell |
.txt | plaintext | Plain text |
By Run Environment
| Environment | Language | Notes |
|---|---|---|
plain | plaintext | Plain text |
rich | markdown | Markdown |
shell | shell | Shell |
applescript | applescript | AppleScript |
js | javascript | JavaScript |
powershell | powershell | PowerShell execution; highlight prefers .ps1 |
python | python | Python |
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