Replies: 10 comments 6 replies
-
You can do it through |
Beta Was this translation helpful? Give feedback.
-
Yes i was check this. But i do not understand how i can transform current selection in fact. Lets imagine: user select any text. It is accessible now in Editor.SelectedText (where Editor is my object of avaloniaedit) and how i can transform this selection in different style? |
Beta Was this translation helpful? Give feedback.
-
This is the selection event Combining that with a line transformer could work for you. |
Beta Was this translation helpful? Give feedback.
-
i am trying but still cannot do it. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks! I am trying like this: SelectionLineTransformer sl = new SelectionLineTransformer(Editor.TextArea); Where is Editor - it is my editor on the form. |
Beta Was this translation helpful? Give feedback.
-
it is just change my selection style! Editor.TextArea.TextView.LineTransformers.Add(new SelectionLineTransformer(Editor.TextArea)); but i need completly other thing! I whant change bold of any part of the text! Like in richtextbox like this: sdfsdfsdfdsf |
Beta Was this translation helpful? Give feedback.
-
This should work...
Note that if you're using Avalonia.TextMate integration, it seems that the grammars there are already setting the text in bold, so maybe you need to disable in order to notice the difference when selecting text. |
Beta Was this translation helpful? Give feedback.
-
Take into account that the open-source project doesn't have the support you require for free. However, Avalonia offers paid support through our Avalonia project website, You may visit their website for more information on our paid support options. |
Beta Was this translation helpful? Give feedback.
-
If you do not what give support - so just don't do it. But for what we have here discussion board? For discussions isn't it? Mabe other users will be more kind and have less formality You give separate class, then some other comments. Then again separate class. I do not understand how USE this class FROM my own object. Real object. Myedit.... doings. But you give me abstractions again and again... |
Beta Was this translation helpful? Give feedback.
-
Please help, cannot make for example one line of text bold other is regular.
Or for example user selection make bold. How i can do it in avaloniaedit?
Beta Was this translation helpful? Give feedback.
All reactions