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

Add XML inhibit tags #26

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

Conversation

LiterallyVoid
Copy link

@LiterallyVoid LiterallyVoid commented Oct 4, 2023

This adds an option to disable typo-mode inside specified XML tags, for example <code> and <pre> if you're going to be writing HTML.

Concerns:

  • Should this be enabled by default, and which tags should be in typo-xml-inhibited-tags? Currently, it's not enabled by default, and some HTML tags (<pre>, <code>, <kbd>, and <samp>) are in the default typo-xml-inhibited-tags list.
  • I haven't tested performance, but it should be roughly the same as checking if it's inside an XML tag, i.e. the per-keystroke cost would be doubled, if enabled.
  • The names I've chosen for these customization options feel a little awkward (typo-inside-xml-inhibited for the query function; typo-xml-inhibited-tags for the list of tags to check for.)

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