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

Improve quote/bracket highlighting #789

Merged
merged 1 commit into from
Jul 17, 2021

Conversation

windymilla
Copy link
Collaborator

Previously, it was necessary to change the text between two quotes or brackets
for them to be highlighted by the Preferences->Enable Quotes Highlighting
operation. There was also no easy way to remove the highlighting apart from
moving the cursor somewhere in the text where it wasn't between quotes or
brackets and modifying the text again. The code used a built-in feature of
the Text widget.

Now, combine the built-in Text widget feature with the control method used
for scanno highlighting, i.e. set a repeating callback to the highlight routine.

Also, adjust the default behaviour to make it check for matching quotes across
multiple lines as it does for brackets, instead of single line as before.
Also add curly quote support.

Fixes #780

Previously, it was necessary to change the text between two quotes or brackets
for them to be highlighted by the Preferences->Enable Quotes Highlighting
operation. There was also no easy way to remove the highlighting apart from
moving the cursor somewhere in the text where it wasn't between quotes or
brackets and modifying the text again. The code used a built-in feature of
the Text widget.

Now, combine the built-in Text widget feature with the control method used
for scanno highlighting, i.e. set a repeating callback to the highlight routine.

Also, adjust the default behaviour to make it check for matching quotes across
multiple lines as it does for brackets, instead of single line as before.
Also add curly quote support.

Fixes DistributedProofreaders#780
@windymilla windymilla requested a review from cpeel July 17, 2021 20:47
@cpeel cpeel merged commit 8eeec76 into DistributedProofreaders:master Jul 17, 2021
@windymilla windymilla deleted the quote-hilighting branch July 18, 2021 11:20
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.

Remove or improve "Enable Quotes Highlighting" on Preferences>Appearance menu
2 participants