code-mirror-themes icon indicating copy to clipboard operation
code-mirror-themes copied to clipboard

Add support for builtin

Open idleberg opened this issue 7 years ago • 3 comments
trafficstars

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.

idleberg avatar May 18 '18 11:05 idleberg

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...

FarhadG avatar May 18 '18 19:05 FarhadG

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.

idleberg avatar May 18 '18 19:05 idleberg

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.

FarhadG avatar May 24 '18 16:05 FarhadG