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

Introduce syntax highlighting support #206

Merged
merged 4 commits into from
Sep 6, 2024
Merged

Introduce syntax highlighting support #206

merged 4 commits into from
Sep 6, 2024

Conversation

mikepenz
Copy link
Owner

@mikepenz mikepenz commented Sep 6, 2024

  • introduce a new module with syntax highlighting support
  • add new default and functions to define the highlighted code block
  • detect language from markdown for highlighter
  • add example in desktop app
  • add documentation on syntax highlighting to README

The Syntax highlighting extension uses the Highlights library by @SnipMeDev.
Currently supporting these languages: https://github.com/SnipMeDev/Highlights/blob/main/src/commonMain/kotlin/dev/snipme/highlights/model/SyntaxLanguage.kt#L4-L21

And a huge amount of different themes: https://github.com/SnipMeDev/Highlights?tab=readme-ov-file#themes-%EF%B8%8F

@mikepenz mikepenz merged commit 134cc80 into develop Sep 6, 2024
3 checks passed
@mikepenz mikepenz deleted the feature/124 branch September 6, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant