You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: building/tracks/new/dynamic-syntax-highlighting.md
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -49,17 +49,18 @@ The next step is to [Enable language](#enable-language).
49
49
50
50
### Create a new plugin
51
51
52
-
If you'd like to create plugin, you have two options for hosting:
52
+
These are the steps to get going:
53
53
54
-
1.Create a repository on your personal account and publish it yourself.
55
-
2.Have us (Exercism) create a repository and let us publish it.
56
-
To do so, open a topic on [the forum](https://forum.exercism.org/c/exercism/building-exercism/125) requesting this.
54
+
1.Check [our repository list for an existing `codemirror-lang-...`](https://github.com/search?q=org%3Acodemirror-lang&type=repositories) to ensure that one doesn't already exist.
55
+
2.Start a new topic on [the Exercism forum][building-exercism] telling us which language you'd like to create a CodeMirror plugin for.
56
+
3. Once a CodeMirror plugin repo has been created for you, implement the grammar for your track.
57
57
58
58
```exercism/note
59
-
You could consider forking the [codemirror/lang-example repository](https://github.com/codemirror/lang-example) which implements CodeMirror support for a simple language.
59
+
To help you get started, the repo created for you contains a minimal sample grammar that you can build on/tweak.
60
60
```
61
61
62
-
Once you have a repo, follow the [language package instructions](https://codemirror.net/examples/lang-package/) to implement the plugin.
62
+
We have an incredibly friendly and supportive community who will be happy to help you as you work through this!
63
+
If you get stuck, please start a new topic on [the Exercism forum][building-exercism] or create new issues at [exercism/exercism][exercism-repo] as needed 🙂
63
64
64
65
You'll then need to publish the plugin on [NPM](https://www.npmjs.com/).
65
66
The next step is to [Enable the language](#enable-language).
@@ -69,3 +70,6 @@ The next step is to [Enable the language](#enable-language).
69
70
Your language's syntax (closely) resembles another language's syntax, in which case you could consider using the syntax highlighting of that language for your language.
70
71
To do so, configure the track using the other language's CodeMirror plugin.
71
72
See the [Enable language](#enable-language) section for more information.
0 commit comments