-
Notifications
You must be signed in to change notification settings - Fork 79
feat: support codeblock syntax highlighting #35
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
Closed
Yukaii
wants to merge
6
commits into
panphora:main
from
Yukaii:feature/support-codeblock-syntax-highlighting
Closed
feat: support codeblock syntax highlighting #35
Yukaii
wants to merge
6
commits into
panphora:main
from
Yukaii:feature/support-codeblock-syntax-highlighting
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
Contributor
|
+1 on this! |
|
+1 |
WebsByTodd
added a commit
to diffplug/gitcasso
that referenced
this pull request
Sep 4, 2025
- Merge latest changes from main into feature/support-codeblock-syntax-highlighting - Preserve both code highlighting functionality and clean HTML export features - Keep indentation handling improvements from main branch - Maintain backwards compatibility for all existing features 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
nedtwigg
added a commit
to diffplug/gitcasso
that referenced
this pull request
Sep 8, 2025
Resolved conflict in src/parser.js by adopting the newer sanctuary-based approach for parsing inline elements from main branch. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Any plans to land this? ❤️ |
Owner
|
Syntax highlighting is now available in v2.0.1! 🎨 We've implemented a library-agnostic approach that works with Shiki, Highlight.js, Prism, or any custom highlighter: // Global highlighter
OverType.setCodeHighlighter((code, language) => {
return highlighter.highlight(code, { language }).value;
});
// Or per-instance
new OverType('#editor', {
codeHighlighter: myHighlighter
});Key features:
Thanks for the initial implementation! We built on your foundation and added alignment verification to ensure OverType's core cursor alignment remains perfect. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary by cubic
Adds syntax highlighting for code blocks via a simple codeHighlighter API. This enables real-time, library-agnostic highlighting with examples for Shiki and highlight.js.