How can I load new languages into Shiki?
See original GitHub issueI have figured it out that to load a language you must put the file in the node_modules/shiki/languages
and then in the node_modules/shiki/dist/index.js
I can add to the list. But isn’t there any way to load it in the setup? I have only found a doc in the repo that explains you can add a new language to the build script but what if I’m interested in languages that you may not want me to put there for everyone?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
shiki/languages.md at main · shikijs/shiki - GitHub
You can add a new language to your shiki instance by using the JSON version of your tmLanguage files with the langs param...
Read more >shiki-languages - npm
Languages for shiki. Latest version: 0.2.7, last published: 2 years ago. Start using shiki-languages in your project by running `npm i ...
Read more >shiki | VuePress
If no languages are provided, shiki will load all available languages automatically. Also see: shiki > languages ...
Read more >Shiki
If you can get syntax highlighting to work for your favorite language in any one of them, try to find its grammar and...
Read more >Shiki – translation into English from Spanish
Install language packages for offline translation on mobile devices and download PROMT AGENT, a plugin for pop-up translation in any Windows app, with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We should document this inside this repo ( I did some light docs for it in shiki-twoslash)
@muenzpraeger ah yeah 😃