Skip to content

editor: additional syntax highlighting languages#4058

Merged
tvanderstad merged 2 commits intomasterfrom
editor-languages
Dec 26, 2025
Merged

editor: additional syntax highlighting languages#4058
tvanderstad merged 2 commits intomasterfrom
editor-languages

Conversation

@tvanderstad
Copy link
Copy Markdown
Contributor

@tvanderstad tvanderstad commented Dec 26, 2025

via bat's syntect-assets. Notable additions include F#, Fish, Fortran, Kotlin, Powershell, Proto, Swift, TOML, and Typescript.

This example shows Swift:

image

Here's the old list:

- ActionScript (as)
- AppleScript (applescript, script editor)
- ASP (asa)
- Batch File (bat, cmd)
- BibTeX (bib)
- Bourne Again Shell (bash) (sh, bash, zsh, fish, .bash_aliases, .bash_completions, .bash_functions, .bash_login, .bash_logout, .bash_profile, .bash_variables, .bashrc, .profile, .textmate_init)
- C (c, h)
- C# (cs, csx)
- C++ (cpp, cc, cp, cxx, c++, C, h, hh, hpp, hxx, h++, inl, ipp)
- camlp4 ()
- Cargo Build Results ()
- Clojure (clj)
- commands-builtin-shell-bash ()
- CSS (css, css.erb, css.liquid)
- D (d, di)
- Diff (diff, patch)
- Erlang (erl, hrl, Emakefile, emakefile)
- Go (go)
- Graphviz (DOT) (dot, DOT, gv)
- Groovy (groovy, gvy, gradle)
- Haskell (hs)
- HTML (ASP) (asp)
- HTML (Erlang) (yaws)
- HTML (html, htm, shtml, xhtml, inc, tmpl, tpl)
- HTML (Rails) (rails, rhtml, erb, html.erb)
- HTML (Tcl) (adp)
- Java (java, bsh)
- Java Properties (properties)
- Java Server Page (JSP) (jsp)
- JavaDoc ()
- JavaScript (js, htc)
- JavaScript (Rails) (js.erb)
- JSON (json, sublime-settings, sublime-menu, sublime-keymap, sublime-mousemap, sublime-theme, sublime-build, sublime-project, sublime-completions, sublime-commands, sublime-macro, sublime-color-scheme)
- LaTeX (tex, ltx)
- LaTeX Log ()
- Lisp (lisp, cl, clisp, l, mud, el, scm, ss, lsp, fasl)
- Literate Haskell (lhs)
- Lua (lua)
- Make Output ()
- Makefile (make, GNUmakefile, makefile, Makefile, OCamlMakefile, mak, mk)
- Markdown (md, mdown, markdown, markdn)
- MATLAB (matlab)
- MultiMarkdown ()
- NAnt Build File (build)
- Objective-C (m, h)
- Objective-C++ (mm, M, h)
- OCaml (ml, mli)
- OCamllex (mll)
- OCamlyacc (mly)
- Pascal (pas, p, dpr)
- Perl (pl, pm, pod, t, PL)
- PHP (php, php3, php4, php5, php7, phps, phpt, phtml)
- PHP Source ()
- Plain Text (txt)
- Python (py, py3, pyw, pyi, pyx, pyx.in, pxd, pxd.in, pxi, pxi.in, rpy, cpy, SConstruct, Sconstruct, sconstruct, SConscript, gyp, gypi, Snakefile, wscript)
- R (R, r, s, S, Rprofile)
- R Console ()
- Rd (R Documentation) (rd)
- Regular Expression (re)
- Regular Expressions (Javascript) ()
- Regular Expressions (Python) ()
- reStructuredText (rst, rest)
- Ruby (rb, Appfile, Appraisals, Berksfile, Brewfile, capfile, cgi, Cheffile, config.ru, Deliverfile, Fastfile, fcgi, Gemfile, gemspec, Guardfile, irbrc, jbuilder, podspec, prawn, rabl, rake, Rakefile, Rantfile, rbx, rjs, ruby.rail, Scanfile, simplecov, Snapfile, thor, Thorfile, Vagrantfile)
- Ruby Haml (haml, sass)
- Ruby on Rails (rxml, builder)
- Rust (rs)
- Scala (scala, sbt)
- Shell-Unix-Generic ()
- SQL (Rails) (erbsql, sql.erb)
- SQL (sql, ddl, dml)
- Tcl (tcl)
- TeX (sty, cls)
- Textile (textile)
- XML (xml, xsd, xslt, tld, dtml, rss, opml, svg)
- YAML (yaml, yml, sublime-syntax)

and the new:

- ActionScript (as)
- Ada (adb, ads, gpr)
- Apache Conf (envvars, htaccess, HTACCESS, htgroups, HTGROUPS, htpasswd, HTPASSWD, .htaccess, .HTACCESS, .htgroups, .HTGROUPS, .htpasswd, .HTPASSWD)
- AppleScript (applescript, script editor)
- ARM Assembly (s, S)
- AsciiDoc (Asciidoctor) (adoc, ad, asciidoc)
- ASP (asa)
- Assembly (x86_64) (yasm, nasm, asm, inc, mac)
- Authorized Keys (authorized_keys, pub, authorized_keys2)
- AWK (awk)
- Batch File (bat, cmd)
- BibTeX (bib)
- Bourne Again Shell (bash) (sh, bash, zsh, ash, .bash_aliases, .bash_completions, .bash_functions, .bash_login, .bash_logout, .bash_profile, .bash_variables, .bashrc, .profile, .textmate_init, .zlogin, .zlogout, .zprofile, .zshenv, .zshrc, PKGBUILD, ebuild, eclass)
- C (c, h)
- C# (cs, csx)
- C++ (cpp, cc, cp, cxx, c++, C, h, hh, hpp, hxx, h++, inl, ipp)
- Cabal (cabal)
- camlp4 ()
- Cargo Build Results ()
- Clojure (clj, cljc, cljs, edn)
- CMake (CMakeLists.txt, cmake)
- CMake C Header (h.in)
- CMake C++ Header (hh.in, hpp.in, hxx.in, h++.in)
- CMakeCache (CMakeCache.txt)
- CMakeCommands ()
- CoffeeScript (coffee, Cakefile, coffee.erb, cson)
- Comma Separated Values (csv, tsv)
- Command Help (cmd-help, help)
- commands-builtin-shell-bash ()
- CpuInfo (cpuinfo)
- Crontab (tab, crontab, cron.d)
- Crystal (cr)
- CSS (css, css.erb, css.liquid)
- D (d, di)
- Dart (dart)
- Diff (diff, patch)
- DMD Output ()
- Dockerfile (Dockerfile, dockerfile)
- DotENV (.env, .env.dist, .env.local, .env.sample, .env.example, .env.template, .env.test, .env.test.local, .env.testing, .env.dev, .env.development, .env.development.local, .env.prod, .env.production, .env.production.local, .env.dusk.local, .env.staging, .env.default, .env.defaults, .envrc, .flaskenv, env, env.example, env.sample, env.template)
- Elixir (ex, exs)
- Elm (elm)
- Elm Compile Messages ()
- Elm Documentation ()
- Email (eml, msg, mbx, mboxz)
- Erlang (erl, hrl, Emakefile, emakefile, escript)
- F# (fs, fsi, fsx)
- Fish (fish)
- Fortran (Fixed Form) (f, F, f77, F77, for, FOR, fpp, FPP)
- Fortran (Modern) (f90, F90, f95, F95, f03, F03, f08, F08)
- Fortran Namelist (namelist)
- fstab (fstab, crypttab, mtab)
- GFortran Build Results ()
- Git Attributes (attributes, gitattributes, .gitattributes)
- Git Commit (COMMIT_EDITMSG, MERGE_MSG, TAG_EDITMSG)
- Git Common ()
- Git Config (gitconfig, .gitconfig, .gitmodules)
- Git Ignore (exclude, gitignore, .gitignore)
- Git Link (.git)
- Git Log (gitlog)
- Git Mailmap (.mailmap, mailmap)
- Git Rebase Todo (git-rebase-todo)
- GLSL (vs, fs, gs, vsh, fsh, gsh, vshader, fshader, gshader, vert, frag, geom, tesc, tese, comp, glsl, mesh, task, rgen, rint, rahit, rchit, rmiss, rcall)
- gnuplot (gp, gpl, gnuplot, gnu, plot, plt)
- Go (go)
- GraphQL (graphql, graphqls, gql)
- Graphviz (DOT) (dot, DOT, gv)
- Groff/troff (groff, troff, 1, 2, 3, 4, 5, 6, 7, 8, 9)
- Groovy (groovy, gvy, gradle, Jenkinsfile)
- group (group)
- Haskell (hs)
- Highlight non-printables (show-nonprintable)
- hosts (hosts)
- HTML (ASP) (asp)
- HTML (EEx) (html.eex, html.leex)
- HTML (Erlang) (yaws)
- HTML (html, htm, shtml, xhtml)
- HTML (Jinja2) (htm.j2, html.j2, xhtml.j2, xml.j2)
- HTML (Rails) (rails, rhtml, erb, html.erb)
- HTML (Tcl) (adp)
- HTML (Twig) (twig, html.twig)
- HTTP Request and Response (http)
- INI (ini, INI, inf, INF, reg, REG, lng, cfg, CFG, desktop, url, URL, .editorconfig, .coveragerc, .pylintrc, .gitlint, .hgrc, hgrc)
- Java (java, bsh)
- Java Properties (properties)
- Java Server Page (JSP) (jsp)
- Javadoc ()
- JavaScript (Babel) (js, mjs, jsx, babel, es6, cjs)
- JavaScript (js, htc)
- JavaScript (Rails) (js.erb)
- Jinja2 (j2, jinja2, jinja)
- JQ (jq)
- JSON (json, sublime-settings, sublime-menu, sublime-keymap, sublime-mousemap, sublime-theme, sublime-build, sublime-project, sublime-completions, sublime-commands, sublime-macro, sublime-color-scheme, ipynb, Pipfile.lock)
- JSON (Terraform) (tfstate)
- jsonnet (jsonnet, libsonnet, libjsonnet)
- Julia (jl)
- Known Hosts (known_hosts, known_hosts.old)
- Kotlin (kt, kts)
- LaTeX (tex, ltx)
- LaTeX Log ()
- Lean (lean)
- Less (less, css.less)
- Lisp (lisp, cl, clisp, l, mud, el, scm, ss, lsp, fasl)
- Literate Haskell (lhs)
- LiveScript (ls, Slakefile, ls.erb)
- LLVM (ll)
- log (log)
- Lua (lua)
- Make Output ()
- Makefile (make, GNUmakefile, makefile, Makefile, makefile.am, Makefile.am, makefile.in, Makefile.in, OCamlMakefile, mak, mk)
- Manpage (man)
- Markdown (md, mdown, markdown, markdn)
- MATLAB (matlab)
- MediawikerPanel ()
- MediaWiki (mediawiki, wikipedia, wiki)
- MemInfo (meminfo)
- MultiMarkdown ()
- NAnt Build File (build)
- Navigational Bar SV ()
- nginx (conf.erb, conf, nginx.conf, mime.types, fastcgi_params, scgi_params, uwsgi_params)
- Nim (nim, nims, nimble)
- Ninja (ninja)
- Nix (nix)
- Objective-C (m, h)
- Objective-C++ (mm, M, h)
- OCaml (ml, mli)
- OCamllex (mll)
- OCamlyacc (mly)
- OpenMP (Fortran) ()
- orgmode (org)
- Pascal (pas, p, dpr)
- passwd (passwd)
- Perl (pl, pc, pm, pmc, pod, t)
- PHP (php, php3, php4, php5, php7, phps, phpt, phtml)
- PHP Source ()
- Plain Text (txt)
- PowerShell (ps1, psm1, psd1)
- Private Key ()
- Protocol Buffer (proto, protodevel)
- Protocol Buffer (TEXT) (pb.txt, proto.text, textpb, pbtxt, prototxt)
- Puppet (pp, epp)
- PureScript (purs)
- Python (py, py3, pyw, pyi, pyx, pyx.in, pxd, pxd.in, pxi, pxi.in, rpy, cpy, SConstruct, Sconstruct, sconstruct, SConscript, gyp, gypi, Snakefile, vpy, wscript, bazel, bzl)
- QML (qml, qmlproject)
- R (R, r, Rprofile)
- R Console ()
- Racket (rkt)
- Rd (R Documentation) (rd)
- Rego (rego)
- Regular Expression (re)
- Regular Expressions (Elixir) (ex.re)
- Regular Expressions (Javascript) ()
- Regular Expressions (PHP) ()
- Regular Expressions (Python) ()
- Requirements.txt (requirements.txt, requirements.in, pip)
- resolv (resolv.conf)
- reStructuredText (rst, rest)
- Robot Framework (robot, resource)
- Ruby (rb, Appfile, Appraisals, Berksfile, Brewfile, capfile, cgi, Cheffile, config.ru, Deliverfile, Fastfile, fcgi, Gemfile, gemspec, Guardfile, irbrc, jbuilder, Podfile, podspec, prawn, rabl, rake, Rakefile, Rantfile, rbx, rjs, ruby.rail, Scanfile, simplecov, Snapfile, thor, Thorfile, Vagrantfile)
- Ruby Haml (haml, sass)
- Ruby on Rails (rxml, builder)
- Ruby Slim (slim, skim)
- Rust (rs)
- Salt State (SLS) (sls)
- Sass (sass)
- Scala (scala, sbt, sc)
- SCSS (scss)
- Shell-Unix-Generic ()
- SML (sml, cm, sig)
- Solidity (sol)
- SQL (Rails) (erbsql, sql.erb)
- SQL (sql, ddl, dml)
- SSH Common ()
- SSH Config (ssh_config)
- SSH Crypto ()
- SSHD Config (sshd_config)
- Strace (strace)
- Stylus (styl, stylus)
- Svelte (svlt, svelte)
- Swift (swift)
- syslog (syslog)
- SystemVerilog (sv, v, svh, vh)
- Tcl (tcl)
- Terraform (tf, tfvars, hcl)
- TeX (sty, cls)
- Textile (textile)
- Todo.txt (todo.txt, done.txt)
- TOML (toml, tml, Cargo.lock, Gopkg.lock, Pipfile, pdm.lock, poetry.lock)
- TypeScript (ts, mts, cts)
- TypeScriptReact (tsx)
- varlink (varlink)
- Verilog (v, V)
- VimHelp (vimhelp)
- VimL (vim, vimrc, gvimrc, .vimrc, .gvimrc, _vimrc, _gvimrc)
- Vue Component (vue)
- Vyper (vy)
- XML (xml, xsd, xslt, tld, dtml, rng, rss, opml, svg, xaml)
- YAML (yaml, yml, sublime-syntax)
- Zig (zig)

@tvanderstad tvanderstad merged commit 010423e into master Dec 26, 2025
1 check passed
@tvanderstad tvanderstad deleted the editor-languages branch December 26, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant