Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature Request: Syntax highlighting #14

Closed
bertiewils opened this issue Sep 29, 2021 · 1 comment · Fixed by #17
Closed

Feature Request: Syntax highlighting #14

bertiewils opened this issue Sep 29, 2021 · 1 comment · Fixed by #17
Labels
🔨 Feature New feature or request 🎨 UI UI or layout related issue

Comments

@bertiewils
Copy link

It would be nice to have syntax highlighting for code when viewing a snippet.

Something like https://github.com/highlightjs/highlight.js could work.

The language field could stay an input field, with some logic to see if the entered language = one of the supported aliases.

You could then have a line below the language field, something like:

Syntax highlighting provided by highlight.js. See the supported languages for valid options.

The alternative would be to make the language field a dropdown of supported languages, now that there are tags separately.

Thank you for a great project!

@pawelmalak pawelmalak added 🎨 UI UI or layout related issue 🔨 Feature New feature or request labels Sep 30, 2021
@pawelmalak pawelmalak linked a pull request Sep 30, 2021 that will close this issue
@bertiewils
Copy link
Author

That's perfect, thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 Feature New feature or request 🎨 UI UI or layout related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants