コードエディタの言語対応
言語対応は、スニペットエディタがシンタックスハイライトと補完を選ぶ方法です。ファイル拡張子(例:.py → Python)またはスニペットの 実行環境(例:shell、python)によります。現行の一覧:
ファイル拡張子別
| 拡張子 | 言語 | 注記 |
|---|---|---|
.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 | など |
.c、.h、.cpp、.hpp | c / cpp | C / C++ |
.php、.rb、.lua、.r | php / ruby / lua / r | など |
.ps1、.psm1 | powershell | PowerShell |
.txt | plaintext | プレーンテキスト |
実行環境別
| 環境 | 言語 | 注記 |
|---|---|---|
plain | plaintext | プレーンテキスト |
rich | markdown | Markdown |
shell | shell | Shell |
applescript | applescript | AppleScript |
js | javascript | JavaScript |
powershell | powershell | PowerShell 実行。ハイライトは .ps1 を優先 |
python | python | Python |
組み込みハイライト
スニペットのコードエディタは多くの言語をハイライトします。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、加えて clojure / dart / haskell / scala など(完全な一覧:設定 → エディタ言語)。カスタム言語は設定で登録できます。
詳細は現行アプリのバージョンに従います。
最終更新日