Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shiki-languages

octref15.9kMIT0.2.7TypeScript support: included

Languages for shiki

shiki, languages, grammar, TextMate

readme

shiki-languages

Languages & grammars for Shiki.

Collections

Extras

See /scripts/pullGrammarsFromGitHub.js

Literal Values

export type Lang =
  | 'abap'
  | 'actionscript-3'
  | 'ada'
  | 'apex'
  | 'applescript'
  | 'asm'
  | 'awk'
  | 'bat'
  | 'c'
  | 'clojure'
  | 'cobol'
  | 'coffee'
  | 'cpp'
  | 'crystal'
  | 'csharp'
  | 'css'
  | 'd'
  | 'dart'
  | 'diff'
  | 'dockerfile'
  | 'elixir'
  | 'elm'
  | 'erlang'
  | 'fortran'
  | 'fsharp'
  | 'git-commit'
  | 'git-rebase'
  | 'go'
  | 'graphql'
  | 'groovy'
  | 'hack'
  | 'haml'
  | 'handlebars'
  | 'haskell'
  | 'hcl'
  | 'hlsl'
  | 'html'
  | 'ini'
  | 'java'
  | 'javascript'
  | 'jinja-html'
  | 'json'
  | 'jsonc'
  | 'jsonnet'
  | 'jsx'
  | 'julia'
  | 'kotlin'
  | 'latex'
  | 'less'
  | 'lisp'
  | 'log'
  | 'logo'
  | 'lua'
  | 'makefile'
  | 'markdown'
  | 'matlab'
  | 'nix'
  | 'objective-c'
  | 'ocaml'
  | 'pascal'
  | 'perl'
  | 'perl6'
  | 'php'
  | 'pls'
  | 'postcss'
  | 'powershell'
  | 'prolog'
  | 'pug'
  | 'puppet'
  | 'purescript'
  | 'python'
  | 'r'
  | 'razor'
  | 'ruby'
  | 'rust'
  | 'sas'
  | 'sass'
  | 'scala'
  | 'scheme'
  | 'scss'
  | 'shaderlab'
  | 'shellscript'
  | 'smalltalk'
  | 'sql'
  | 'stylus'
  | 'svelte'
  | 'swift'
  | 'tcl'
  | 'toml'
  | 'ts'
  | 'tsx'
  | 'typescript'
  | 'vb'
  | 'viml'
  | 'vue'
  | 'wasm'
  | 'xml'
  | 'xsl'
  | 'yaml'
  | '文言'

Add

changelog

Changelog

0.2.7 | 2020-11-13

  • Fix color fallback issues. #100.
  • 🙌 Add Applescript grammar. #99. Thanks to contribution from Arturo Galán.

0.2.6 | 2020-09-28

  • Upgrade to onigasm 2.2.5.
  • Add Erlang grammar.
  • 🙌 Add Elixir grammar. #95. Thanks to contribution from Sebastien Baudray.
  • 🙌 Fix wrong escape sequence in vuepress plugin. #93. Thanks to contribution from Yu Zhang.

0.2.5 | 2020-09-17

  • Reduce dependency size (shiki-themes is 47M). #94.

0.2.4 | 2020-09-13

  • Fix RangeError: Invalid array length in vuepress-plugin-shiki.
  • 🙌 Wrap line in <span class='line'></span>. #76. Thanks to contribution from Christoph Werner.

0.2.3 | 2020-09-08

  • Add 文言 language. #88.
  • Add slack-theme-dark-mode and slack-theme-ochin themes. Thanks to contribution from Christoph Werner. #78.

0.2.2 | 2020-08-26

  • Fix dark-plus syntax highlighting for uncolored white text.

0.2.1 | 2020-08-24

  • Allow custom languages for vuepress. #80.
  • Fix php syntax highlighting. #21.
  • Add jinja-html language, which embeds jinja language. #24.
  • Remove vue-html language. Either use vue or html language.

0.2.0 | 2020-08-24

  • Normalize all theme names to kebab-case.
  • Add GitHub light/dark themes.
  • Remove less popular themes.
  • Add hlsl, asm (x86 Assembly), m (Matlab), sas, d, dart, plsql, logo, , pas (Object Pascal/Delphi), cobol, kt (Kotlin), scala, abap, julia, scheme, prolog, ada, lisp, apex, fortran, haskell, hcl, hack, awk, as (ActionScript), tcl, ocaml, viml, puppet, jsonnet, smalltalk, cr (Crystal), wat (WASM), nix, elm, purescript and svelte languages.
  • Add pug language and make jade an alias of it.
  • Use GitHub workflow to update grammars periodically. #72.
  • Use GitHub workflow to update themes periodically. #71.
  • Use theme foreground color when color of token is undefined. #27.
  • SVG Renderer. #2.
  • Fix HTML escaping. #26 and #28. Thanks to contribution from @jackens.
  • 🙌 Add an option to skip generating the explanation text. #52. Thanks to contribution from Gerrit Birkeland.
  • 🙌 Improve performance by avoiding some unnecessary string copies. #51. Thanks to contribution from Gerrit Birkeland.
  • 🙌 Allow loading custom tmLanguage. #10 and #49. Thanks to contribution from Orta Therox and @pngwn.
  • 🙌 Update Java grammar. #36 and #37. Thanks to contribution from @0xflotus.

0.1.7 | 2020-04-28

  • Update to latest Dark+/Light+ theme from VS Code.

0.1.6 | 2019-09-19

0.1.5 | 2019-09-09

  • Begin to keep a changelog. #7.
  • Accept plaintext, text and txt as lang. Will return code as it is. #16.
  • Add jsonc language. #18.
  • Add csharp language. #14.
  • Add md as an alias for markdown.
  • Add zsh as an alias for bash.
  • Add yml as an alias for yaml.
  • 🙌 Use json5 for parsing theme as JSONC. #11. Thanks to contribution from Wes Bos.