Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for builtin #4

Open
idleberg opened this issue May 18, 2018 · 3 comments
Open

Add support for builtin #4

idleberg opened this issue May 18, 2018 · 3 comments

Comments

@idleberg
Copy link

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 idleberg changed the title Add support for builtin Add support for builtin May 18, 2018
@FarhadG
Copy link
Owner

FarhadG commented May 18, 2018

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

@idleberg
Copy link
Author

idleberg commented May 18, 2018

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.

@FarhadG
Copy link
Owner

FarhadG commented May 24, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants