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

// cSpell:disable example #2948

Closed
bubbletroubles opened this issue Nov 28, 2023 · 3 comments · Fixed by #2954
Closed

// cSpell:disable example #2948

bubbletroubles opened this issue Nov 28, 2023 · 3 comments · Fixed by #2954

Comments

@bubbletroubles
Copy link
Contributor

bubbletroubles commented Nov 28, 2023

The example in the readme.md file says that // cSpell:disable syntax can be used.

However, that syntax is not an option in the Disable checking documentation a few lines above.

image

It would be good to clarify the example vs valid ways to disable spell checking.

@Jason3S
Copy link
Collaborator

Jason3S commented Nov 28, 2023

@bubbletroubles,

The important part is cspell:disable, not how to create a comment.

For example if you want to disable the spell checker in a Markdown file, you would use:

Markdown

<!--- cspell:disable --->
This text is not checked.
<!--- cspell:enable --->
This text is checked.

Python:

# cspell:disable
example = "This text is not checked."
# cspell:enable
example2 = "This text is checked."

Is this what you were asking about?

@bubbletroubles
Copy link
Contributor Author

Ah yes that makes sense., thanks @Jason3S .

I created a draft PR #2949 to update the example (I'm not sure if you want to merge it, but it sure would have helped me to have that info). Let me know if I should publish the PR for your review.

@Jason3S Jason3S linked a pull request Dec 4, 2023 that will close this issue
@Jason3S Jason3S closed this as completed Dec 4, 2023
Copy link
Contributor

github-actions bot commented Jan 4, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants