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

Export formatted text as default style #14

Open
igitur opened this issue Jan 9, 2020 · 4 comments
Open

Export formatted text as default style #14

igitur opened this issue Jan 9, 2020 · 4 comments
Labels

Comments

@igitur
Copy link

igitur commented Jan 9, 2020

Hi,

I use Notepad++ with a dark theme, e.g. Obsidian. However, I would like to export the formatted text a light theme, e.g. the default Notepad++ theme, because I often need to paste it into an email and send it someone else. The dark mode background is quite disrupting in the middle of an email with a white background.

Would adding the option to export using default style be possible?

Thanks

@chcg chcg added the question label Jan 13, 2020
@chcg
Copy link
Owner

chcg commented Jan 13, 2020

Which export option do you use? HTML?

Probably that would be possible, if in
https://github.com/chcg/NPP_ExportPlugin/blob/master/src/HTMLExporter.cpp#L114-L115

currentStyle would be set to defaultStyle.

@igitur
Copy link
Author

igitur commented Jan 13, 2020

I mainly use Copy HTML to clipboard, but even with Copy RTF to clipboard does it copy using the current style.

@chcg
Copy link
Owner

chcg commented Dec 7, 2020

@igitur What would be your expectation for this case. Should just the background colour be white or transparent or the one from the default style. And how should the foreground colours behave? From a first check of the code it might be possible to modify the background, but the foreground seems to be quite hard to modify as the styling is taken from the underlying scintilla and the theme is unknown there and also not accessible by plugins.

@laurent149
Copy link

I can imagine that this is tricky to implement but I do share the same frustration as @igitur: how great it would be to enjoy Notepadd++' dark mode and at the same time still have "Copy RTF to clipboard" (or HTML) use the default style.
Working only on the background won't do the trick, as foreground colors would become unreadable.

I use the copy functionality so often that my only solution for now is to ignore the cries of my eyes begging for the dark mode :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants