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

Question: How do I keep the format when copying text out of an avalonedit:TextEditor ? #214

Open
VictorOdukoya opened this issue Jan 21, 2020 · 0 comments

Comments

@VictorOdukoya
Copy link

Hello,
I have a question related to the formatting of the texteditor control. I have highlighted some SQL Code using some xshd. I changed the font family to "consolas" by adding the fontfamily attribute in the xml control. When I copy the text of the texteditor and paste it into Word, the font family will not be transfered over to word, the colors however will. I also created a TypeFace with the consolas font and changed it trough a DocumentColorizingTransformer (similar to here: https://stackoverflow.com/questions/23186060/avalonedit-is-it-possible-to-highlight-this-syntax/23251990#23251990)

But that didn't help either. The font changed in the texteditor, but did not transfer over to word.
Can someone help me in solving this? I want to copy the text out of the texteditor and I want to keep the font family and the colors (preferable also the font size).

Thank you

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

No branches or pull requests

2 participants