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

remove quick and dirty caching #274

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

CypherPotato
Copy link

this PR removes the "quick and dirty caching" present in the SyntaxHighlighter.cs, this way, any key will force the component to re-render.

This sounds bad, but the cost is very low, and it makes it possible to render components when you "navigate" through the code, like highlighting matching brackets:

WindowsTerminal_44IuAnB5Ri.mp4

Example usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant