code-mirror-themes
code-mirror-themes copied to clipboard
Add support for builtin
I know that CodeMirror lacks a good documentation on its styles, but many of the bundled themes have support for builtin, so it would be nice if you could add support for your themes as well.
Thanks for the feedback, @idleberg. Do you have any references to builtin? I'm not sure what that is and what support for that feature would look like...
As far as I understand it, builtins are functions that are bundled with a language (see Python, for example). I'm not sure how this compares to TextMate scopes (which Sublime Text also uses), probably support.function.
By the way, here are all the types supported by the default CodeMirror theme:
.cm-s-default .cm-keyword {…}
.cm-s-default .cm-atom {…}
.cm-s-default .cm-number {…}
.cm-s-default .cm-def {…}
.cm-s-default .cm-variable {…}
.cm-s-default .cm-punctuation {…}
.cm-s-default .cm-property {…}
.cm-s-default .cm-operator {…}
.cm-s-default .cm-variable-2 {…}
.cm-s-default .cm-variable-3 {…}
.cm-s-default .cm-type {…}
.cm-s-default .cm-comment {…}
.cm-s-default .cm-string {…}
.cm-s-default .cm-string-2 {…}
.cm-s-default .cm-meta {…}
.cm-s-default .cm-qualifier {…}
.cm-s-default .cm-builtin {…}
.cm-s-default .cm-bracket {…}
.cm-s-default .cm-tag {…}
.cm-s-default .cm-attribute {…}
.cm-s-default .cm-hr {…}
.cm-s-default .cm-link {…}
.cm-s-default .cm-error {…}
.cm-invalidchar {…} // I wonder why this one lacks the theme prefix
By the way, a long time ago I maintained the CodeMirror templates for Base16, which lack many of those types listed above. Maybe we can join our efforts somehow.
Thanks for the info, @idleberg. I'm open to collaboration and I'm sure the community would love it, as well. Let me know what you have in mind.