Comments (4)
This is what I have on my project and it works fine:
const shiki = require('shiki')
// shiki.getHighlighter({ theme: 'nord' })
{ theme: shiki.loadTheme('./static/themes/dracula.json') }
Please note that since I'm using gridsome
to build my site, I'm also using gridsome-plugin-remark-shiki
to set Shiki up. I don't set it up directly but I've added a comment with the place where it should go if you're using it on your own.
from shiki.
@hacknug Chris was asking for a way to load .tmLanguage
syntax definitions, not themes
from shiki.
@idleberg I see. Sorry for the confusion!
from shiki.
Looking for same
from shiki.
Related Issues (20)
- Multiple grammars for the same lanuage HOT 1
- Out of Bounds memory issue when deploying to Netlify HOT 1
- Hugo website installation HOT 2
- Open issue automatically when remote grammar/theme is unavailable
- Supporting your own languages with Shiki example won't typecheck
- [Feature request]: Add support for `URL` HOT 1
- Schedule for new patch release HOT 1
- feat: make a ziglang support HOT 3
- Vue directives and interpolation highlighting does not work
- Infinite Loop when langs is Not Provided in Shiki Highlighter Configuration HOT 1
- Tokens includeExplanation typings mismatch HOT 1
- CDN/Assets-free ESM Approach of loading wasm and languages HOT 4
- Shiki is downloading all languages despite the config HOT 1
- Add config file for node executable path HOT 2
- Material Darker Theme
- How to stop shiki from escaping HTML characters HOT 8
- Infinite loop when parsing unclosed ansi string
- Proposal: to add grammar support for `Poetry` HOT 1
- WordPress specific grammars HOT 1
- Add a new Fortran grammar HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shiki.