mutasim77 / textmate-grammars-themes

Collection of TextMate grammars and themes in JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tm-grammars / tm-themes

tm-grammars tm-themes

Collection of TextMate grammars and themes, converted in JSON format and re-distributed as npm packages.

Packages are automatically updated and published every day (if there are changes).

Scripts are extracted and modified from Shiki.

Contribute

Add a new grammar

  1. Fork this repository
  2. Add grammar source and metadata to sources-grammars.ts
  3. Add a code sample file <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:
  • Space for indentation
  • Less than 100 columns if possible
  • Link to source in the last line, for example # From https://poignant.guide/book/chapter-5.html
  1. Run pnpm run fetch to download the grammar and verify it works
  2. Send in the PR!

Add a new theme

  1. Fork this repository
  2. Add theme source and metadata to sources-themes.ts
  3. Run pnpm run fetch to download the theme and verify it works
  4. Send in the PR!

License

The grammars 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

About

Collection of TextMate grammars and themes in JSON

License:MIT License


Languages

Language:JavaScript 63.6%Language:TypeScript 36.4%