add custom theme/language documentation to README

main
Brian Dennis 7 years ago committed by GitHub
parent b6db0fe3e4
commit 9a4454fa3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,6 +65,13 @@ If you'd like to make some changes yourself, see the following:
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/customModes) to implement it and add a constant like above.
## Thanks To
[ ▲ ZEIT ](https://zeit.co/) for sponsoring Carbon's hosting.

Loading…
Cancel
Save