question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I load new languages into Shiki?

See original GitHub issue

I 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:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ortacommented, Aug 3, 2021

We should document this inside this repo ( I did some light docs for it in shiki-twoslash)

0reactions
pouyakarycommented, Dec 19, 2022

@muenzpraeger ah yeah 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found