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 syntax highlighting and image previews to snippets #226

Merged
merged 16 commits into from
Jun 10, 2022

Conversation

theRealPadster
Copy link
Member

@theRealPadster theRealPadster commented Jun 9, 2022

Added syntax highlighting to snippet modals via react-simple-code-editor. I needed to add a script tag to fix a bug with it (in extension.ts), and for some reason it wouldn't build if I imported the CSS from node_modules, so I copied the theme file into the app.

I've also added in the changes to add preview images for snippets, and the capability to add your own, saved as base64 in localstorage.

@theRealPadster theRealPadster added the 💫 enhancement New feature or request label Jun 9, 2022
Copy link
Member

@kyrie25 kyrie25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly fine for me!

@theRealPadster theRealPadster changed the title ✨➕ Add css syntax highlighting to snippet modals ✨➕ Add syntax highlighting and image previews to snippets Jun 10, 2022
@theRealPadster theRealPadster linked an issue Jun 10, 2022 that may be closed by this pull request
@theRealPadster theRealPadster merged commit 19f2206 into main Jun 10, 2022
@kyrie25 kyrie25 deleted the feat/code-editor branch June 10, 2022 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💫 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Preview images for Snippets
2 participants