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

Open
opened 2020-01-21 09:54:45 -06:00 by VictorOdukoya · 0 comments
VictorOdukoya commented 2020-01-21 09:54:45 -06:00 (Migrated from github.com)

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

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 in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/AvalonEdit#214
No description provided.