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

FR: Remember Style all occurrences of token though the sessions #12684

Open
donho opened this issue Dec 21, 2022 · 4 comments
Open

FR: Remember Style all occurrences of token though the sessions #12684

donho opened this issue Dec 21, 2022 · 4 comments
Assignees

Comments

@donho
Copy link
Member

donho commented Dec 21, 2022

Style all occurrences of token & Style one token are not persistent trough the session currently.
If would be great they can be remembered.

@donho donho self-assigned this Dec 21, 2022
@ArkadiuszMichalski
Copy link
Contributor

#4808 (comment)

To store the info of styled tokens, the intuitive & efficient way is using offset/length. But there will be a bug on restoring if document is modified outside before Notepad++ starts and opens the document.

The other more consist way is store whole styled string in xml file and redo find & style the token while Notepad++ load the document. It will cause the performance issue if the loaded document is large:
You may notice that smart highlighting doesn't style the whole document but only on the visual page (the part displayed to user). This walkaround was made after a lot people complaining about smart highlighting performance on a large document, and it's about only styling one token.

The latter approach would be less susceptible to external changes, but would only cover Style all...

@alankilborn
Copy link
Contributor

See here for recent user request of same capability: https://community.notepad-plus-plus.org/topic/23966

@alankilborn
Copy link
Contributor

Another user request: https://community.notepad-plus-plus.org/topic/24596

@alankilborn
Copy link
Contributor

Another user request (I think): https://community.notepad-plus-plus.org/topic/24663

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

No branches or pull requests

3 participants