Questions tagged [avalonedit]

AvalonEdit is a .NET WPF-based source code editor component developed for SharpDevelop 4.0 "Mirador".

AvalonEdit supports .NET 3.5 SP1 and .NET 4.0.

Source code can be downloaded from the SharpDevelop source code repository.

As SharpDevelop 4.0 is still in development the documentation for AvalonEdit is very sparse. All available materials are compiled in an article on SharpDevelop wiki.

Resources

Using AvalonEdit (WPF Text Editor)
Making AvalonEdit MVVM compatible

190 questions
0
votes
2 answers

avalonedit:TextEditor MouseWheel event not firing in WPF

Unable to work with MouseWheel event in avalonedit TextEditor. WPF : c# : private void…
Dany Maor
  • 2,391
  • 2
  • 18
  • 26
0
votes
1 answer

Draw line number of ListBox items in a separated control

I want to draw line numbers in the left of a ListBox, very similar to what AvalonEdit does with LineNumberMargin. When ShowLineNumbers is true, it creates LineNumberMargin like this. Anyways, I took a look at how they do it, and understood, and now…
JobaDiniz
  • 862
  • 1
  • 14
  • 32
0
votes
0 answers

How to calculate ExtentHeight of rendered text in AvalonEdit initially?

I am trying to initially calculate ExtentHeight of rendered text displayed in AvalonEdit control to prevent scroll jumping after VisualLineElementGenerators are applied. VisualLineElementGenerator that I use adds extra vertical space between certain…
0
votes
2 answers

AvalonEdit highlight everything after a word and before the next space?

I'm using AvalonEdit in an app that runs my own custom-built language. I have defined a highlighting.xml file that works just fine. Now I am trying to extend it according to: the next word appearing after "method" is colored blue. I came up with…
JoanComasFdz
  • 2,911
  • 5
  • 34
  • 50
0
votes
0 answers

How to use avalonEdit control 3 Questions

I'm building a Html code editor with WPF and I use avalonEdit control, my 3 Questions are. how to create collapse code like in the picture I attached (the plus and minus signs)? how to get the current line number and text (all the text in the…
Dany Maor
  • 2,391
  • 2
  • 18
  • 26
0
votes
1 answer

AvalonEdit CompletionWindow is not showing when break point is enabled

I am using ICSharpCode.AvalonEdit for Text Editor. When I am in debug mode with enabled breakpoints, CompletionWindow is not showing in the TextEditor. When disable the breakpoints then CompletionWindow is showing. Anyone facing this issue ? Because…
Saqwes
  • 325
  • 3
  • 12
0
votes
1 answer

Making InlineObjectElement read-only

Is there an easy way to make generated InlineObjectElements read-only? I'm thinking of using a custom ReadOnlySectionProvider. Is there a way to get a TextSegment from a InlineObjectElement that is kept updated? Or do I need to create my own…
Pking
  • 953
  • 1
  • 14
  • 33
0
votes
0 answers

AvalonText custom highlight set in xaml wpf

I am trying to use the AvalonText wpf control with a custom xmhl highlighting file. The control will appear as the row detail of a data grid so I can't set the highlighter at run time (or at least I don't know how) and would rather do it in XAML…
Lance
  • 611
  • 6
  • 28
0
votes
1 answer

AvalonEdit - How do i color variables inside of a string

Is there a way to add a rule in AvalonEdit to color all variables inside of a string to something different? Kind of like how NSIS does (HM NIS Edit for example) In this case, i'd need to have "$SmPrograms" (a constant) and "${AppName}" (a variable)…
Damian
  • 1,209
  • 14
  • 24
0
votes
1 answer

AvalonEdit reordering of document lines

We have currently started to evaluate AvalonEdit. We want to use it for a custom language. One of our requirements is to reorder and also to sort document lines by a certain criteria. How can this be accomplished? Thanks in advance!
Manifredo
  • 11
  • 2
0
votes
0 answers

WPF AvalonEdit does not display bound TextDocument from ViewModel

I have no Binding errors in my output window. I want to bind text from a file(s) to one/many avalonEdit controls via MVVM. How can I do that, because its not working the way I tried?! VIEW >
Pascal
  • 12,265
  • 25
  • 103
  • 195
0
votes
1 answer

How do I add Keywords at runtime to main ruleset?

I add a new Keywords object to the main rule set at run time. But except those keywords, other rules are colored properly. Can anyone explain why words loaded at runtime don't get highlighted? using (Stream stream =…
Nayan
  • 3,092
  • 25
  • 34
0
votes
1 answer

AvalonEdit: Getting Syntax Highlighted Text

I'm registering syntax highlighting with AvalonEdit with: PythonPrompt.SyntaxHighlighting = pythonHighlighting; Text can then be input by the user throughout the course of the program. Is there a way to take the formatted text and move it to a…
Jonathan
  • 585
  • 7
  • 27
0
votes
1 answer

AvalonEdit debug messages: How do I turn them off?

I've got AvalonEdit embedded in a WPF application. As I resize, change text, etc, it continually sends debug messages to the console output window. Messages like: OnHighlightStateChanged forces redraw of line 13 Building line 13 Is there any…
thund
  • 1,842
  • 2
  • 21
  • 31
0
votes
1 answer

AvalonEdit TextView Scroll

I am trying to to make a specific visible line (e.g. line152), which is defined in code behind, to become a First visible line on TextView. Also, I would like this line to be highlighted. So far I have the implemented the following solution, without…
Jim
  • 2,760
  • 8
  • 42
  • 66
1 2 3
12
13