Collection of TextMate grammars and themes in JSON
Collection of TextMate grammars and themes, converted to JSON and re-distributed as npm packages. Extracted from Shiki, available for general usage.
Packages are automatically updated and published every day (if there are changes).
pnpm install.sources-grammars.ts.<id>.sample for your language under ./samples. A sample should include a variety of language syntaxes and succinctly capture the idiosyncrasy of a language. Format requirements:# From https://poignant.guide/book/chapter-5.html)..env file and paste your generated token into the file like so:GITHUB_TOKEN=your-personal-access-token
pnpm run fetch to download the grammar.pnpm run play to start the playground. Select the new grammar in the left column to verify the accuracy and confirm that the grammar works as expected.pnpm install.sources-themes.ts..env file and paste your generated token into the file like so:GITHUB_TOKEN=your-personal-access-token
pnpm run fetch to download the theme.pnpm run play to start the playground. Select the new theme in the right column to verify the accuracy and confirm that the theme works as expected.The grammars and themes included in this package are covered by their repositories’ respective licenses, which are permissive (apache-2.0, mit, etc), and made available in Grammars NOTICE and Themes NOTICE.
All other files MIT © Pine Wu & Anthony Fu.
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.