-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
@sprintr have you tried adding a simple mode as a new language in Brackets with this? |
@mackenza Yes, I added CodeMirror's handlebars mode as a language to brackets. It worked fine when I tested it against some handlebars strings. |
This looks good. All unit and integration tests passed. Merging. Thanks for this awesome contribution! |
Add CodeMirror simple-mode addon
I've also added a note to the wiki page: https://github.com/adobe/brackets/wiki/Language-Support/_compare/2c83f4b3be9bb6cbe86e1ebd5d357d9ca5a2915f...d8aa32d203b7f4f20b9342ac7eb06818c50bde84 |
Great, your edit of the Language-Support page is already a first step, but to me it still sounds greek. "To use your custom CodeMirror mode, load it using require(), register it with CodeMirror using CodeMirror.defineMode(), then call LanguageManager.defineLanguage() as above." maybe it says it all, but only if you know the lingo ... :P Would it be possible to have a more step by step help page to add a new language from scratch? At this point such a feature might be a great thing that bracket does, so it is probably worth explaining to the people :) Thanks a lot |
I have answered about @foice's issue in the brackets-dev group. @marcelgerber We can add a couple of examples of using |
Yes I am looking now at Amin Ullah Khan main.js. It looks promising and will give it a try tomorrow. |
The example provided was very helpful. I think I have gone already a good way in coloring my code :) |
Allows extension developers to use CodeMirror's simple mode addon. Fixes #11267 and #10501