Skip to content

Conversation

@Maribbit
Copy link

@Maribbit Maribbit commented Dec 27, 2025

Fixes #59 #29 #46

The extra newline character between the <pre> and <code> tags in the template causes a vertical offset in the highlighted code overlay. This results in a mismatch between the visible code and the actual cursor position in the textarea.

Removing the whitespace ensures the code block starts exactly where the container starts, aligning perfectly with the textarea.

The extra newline character between the `<pre>` and `<code>` tags in the template causes a vertical offset in the highlighted code overlay. This results in a mismatch between the visible code and the actual cursor position in the textarea.

Removing the whitespace ensures the code block starts exactly where the container starts, aligning perfectly with the textarea.
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.

Bug: Cursor misalignment caused by extra whitespace in CodeEditor.vue

1 participant