notion-syntax-highlighter icon indicating copy to clipboard operation
notion-syntax-highlighter copied to clipboard

Performance issues when editing large code blocks

Open JSerwatka opened this issue 2 years ago • 0 comments

When you haven't reached the threshold for disabling syntax highlighting but still working with a very large code snippet, writing code inside a code block can become sluggish. This is an inherent issue with Notion's code blocks.

I will explore ways to improve performance by identifying the differences between the previous and new code blocks and implementing granular HTML editing.

Maybe use something lighter than highlightjs - check carbon code

JSerwatka avatar Jun 30 '23 15:06 JSerwatka