From 546281dd653d46d4c02297b29b8d05144b2618f3 Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Sat, 5 May 2018 12:34:55 -0700 Subject: [PATCH] Update CONTRIBUTING.md --- .github/CONTRIBUTING.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 3de655a..b14c556 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -11,3 +11,10 @@ If you'd like to make some changes yourself, see the following: 6. Finally, submit a [pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) with your changes! This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome! + +### A note on adding themes/languages +We're happy to accept any PRs adding new themes and languages to Carbon! Currently there are a few ways to do so: + +1. If the [theme](https://codemirror.net/demo/theme.html) or [language](https://codemirror.net/mode/index.html) is supported in Codemirror, all you have to do is add a [constant](https://github.com/dawnlabs/carbon/blob/master/lib/constants.js) for it. + +2. If it's not supported, you can add a Codemirror compliant [custom file](https://github.com/dawnlabs/carbon/tree/master/lib/custom) to implement it and add a constant like above.