https://github.com/dflock/codemirror-lang-qsharp
Q# language support for the CodeMirror code editor
https://github.com/dflock/codemirror-lang-qsharp
Last synced: over 1 year ago
JSON representation
Q# language support for the CodeMirror code editor
- Host: GitHub
- URL: https://github.com/dflock/codemirror-lang-qsharp
- Owner: dflock
- License: mit
- Created: 2024-09-11T20:44:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T20:44:56.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T23:14:31.659Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeMirror 6 language package template
This is an example repository containing a minimal [CodeMirror](https://codemirror.net/6/) language support package. The idea is to clone it, rename it, and edit it to create support for a new language.
Things you'll need to do (see the [language support example](https://codemirror.net/6/examples/lang-package/) for a more detailed tutorial):
* `git grep EXAMPLE` and replace all instances with your language name.
* Rewrite the grammar in `src/syntax.grammar` to cover your language. See the [Lezer system guide](https://lezer.codemirror.net/docs/guide/#writing-a-grammar) for information on this file format.
* Adjust the metadata in `src/index.ts` to work with your new grammar.
* Adjust the grammar tests in `test/cases.txt`.
* Build (`npm run prepare`) and test (`npm test`).
* Rewrite this readme file.
* Optionally add a license.
* Publish. Put your package on npm under a name like `codemirror-lang-EXAMPLE`.