Feat: panda theme#367
Conversation
|
|
🦋 Changeset detectedLatest commit: 1ffc073 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
reply to #366 (comment)
Hey @TGlide, in this case you can use the default api from CodeMirror. You should be able to call directly the codeimage/packages/highlight/src/lib/themes/githubDark/githubDark.ts Lines 46 to 54 in 3d9c311 I don't think there is a In this case I imagine you have to do something like this: syntaxHighlighting(
HighlightStyle.define([
{
tag: t.controlKeyword,
color: yourColor,
},
]),
),Anyway, probably there will be to extend the Lezer parser to create an unique tag for this keyword, but it's something that it's not planned right now. Doing a perfect copy is impossible so don't worry, it's fine even if the return matches the color of the generic keywords 😄 |
|
@riccardoperra Thanks for the help! It worked, although I had to put the syntaxHighlighting before defineEditorTheme for it to work. |
|
Oops, probably this is because defineEditorTheme already use that tag, but it's fine 😄 Anyway, everything seems ok 😄 I just reverted only the pnpm-lock since I don't know if it's ok that modules are resolved correctly. Since the main branch now contains also the newest 1.0 version, the deploy will be the next weeks. Thanks again |
|
Thanks for the merge @riccardoperra! Glad I could help. Would you mind adding the |
|
Done 😃 ! |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: Closes #366
What is the new behavior?
Does this PR introduce a breaking change?
Other information