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
9
votes
1 answer

Cursor position is not changed for up and down key in Avalon text editor

I am using the Avalon text editor and the cursor position is not changed for the key up and key down. Can anyone suggest me how to overcome this issue? The cursor position properly changes for the key right and left navigations. I have also checked…
Venkat
  • 2,549
  • 2
  • 28
  • 61
8
votes
1 answer

Avalonedit Show syntax error

when I develop a custom language IDE using avalonedit, I encountered a problem. I use regex to check the syntax, and it works as designed. However, I want to show the syntax error with wave text mark. I did search at google, yet the solution is…
Kuree
  • 118
  • 7
7
votes
4 answers

AvalonEdit WPF TextEditor (SharpDevelop): How to highlight a specific range of text?

The incredibly awesome AvalonEdit WPF TextEditor control seems to lack an important feature, or at least i can't figure it out. Given an offset and a length, highlight that portion in the TextDocument with a HighlightColor. Simple, right? Apprentely…
Matt Crouch
  • 1,708
  • 2
  • 18
  • 29
7
votes
2 answers

Adding syntax highlighting rules to AvalonEdit programmatically

I'm using AvalonEdit in an app that runs my own custom-built language. I want to put in appropriate syntax highlighting into Avalon Edit. Normally this is done by defining the highlighting rules in an xml file by hand. However, I don't want the…
thund
  • 1,842
  • 2
  • 21
  • 31
6
votes
1 answer

How to add a DocumentColorizingTransformer to AvalonEdit

I've implemented my own DocumentColorizingTransformer. But now, how do I add it to the AvalonEdit?
user1237393
  • 137
  • 9
6
votes
2 answers

AvalonEdit - xshd for JSON highlighting

Is there an xshd ruleset for the AvalonEdit control to highlight the JSON syntax? I tried the definition for JavaScript, but it doesn't work well, i.e.: { "name" : "value" } both name and value have the same color using the JavaScript…
alek kowalczyk
  • 4,896
  • 1
  • 26
  • 55
6
votes
2 answers

How to Change the Style on AvalonEdit CodeCompletion Window?

I'm trying to figure out how to change the style of the AvalonEdit CodeCompletion window. However, I can't figure out the right combination of xaml style target/properties to change it. The main thing I'd like to do is get rid of the border, but…
Keith G
  • 4,580
  • 5
  • 38
  • 48
6
votes
4 answers

Show Border on avalonEdit:TextEditor

I am trying to get a border to show around an avalonEdit 'box' in a Wpf control but can't seem to make it happen. I added BorderBrush="Black" BorderThickness="2" but clearly I am missing something. I've googled but, despite my endeavors, I cannot…
Stewart_R
  • 13,764
  • 11
  • 60
  • 106
6
votes
2 answers

Avalonedit How to invalidate Line Transformers

I've added a LineTransformerClass that is derived from DocumentColorizingTransformer to the TextEditor: TxtEditCodeViewer.TextArea.TextView.LineTransformers.Add(new ColorizeAvalonEdit()); Is there any programmatic way of invoking invalidation on…
TtT23
  • 6,876
  • 34
  • 103
  • 174
6
votes
1 answer

Showing Invalid XML Syntax with AvalonEdit

I am trying to use AvalonEdit as a XML text editor in my WPF application. However, it doesn't do any formatting (such as wavy lines) when it encounters invalid syntax. I will like to know if such function can be done using AvalonEdit, or if there is…
Wee
  • 278
  • 4
  • 16
5
votes
1 answer

How to Suspend the Undostack of Avalonedit?

I perform a massive text-change on the editor i can not (or very difficult) determine when the changes begin end (the textchange is released by scrolling) i dont want to be able to undo the changes for this reasons i want to suspend the listening…
0xDEADBEEF
  • 3,401
  • 8
  • 37
  • 66
5
votes
1 answer

AvalonEdit is not showing the data in CompletionWindow for KeyDown event

I am using AvalonEdit as my TextEditor and is not showing the data in the CodeCompletionWindow when it is called from Key_Down button, however everything works fine when handled as Text_Entered event. Below is the sample code [Serializable] public…
Saqwes
  • 325
  • 3
  • 12
5
votes
3 answers

Avalonedit how to programmatically change background of a text

I want to implement something that programmatically changes the background of the text when provided with a documentline.(Something that looks very similar to a block selection of a text. I'm going to be using this for debug breakpoints of an IDE…
TtT23
  • 6,876
  • 34
  • 103
  • 174
4
votes
2 answers

AvalonEdit for ironPython Scripts?

Is it possible to use AvalonEdit control in a WPF application as an ironPython script editor? The requirement is to have syntax highlighting and inline script validation. If possible having intellisense would be even better. If not AvalonEdit,…
Bhuvan
  • 1,523
  • 4
  • 23
  • 49
4
votes
1 answer

How to set the code selection programatically in AvalonEdit?

I'm using AvalonEdit in a Microsoft Surface application. Since the Contacts are handled a little bit different there than in a normal WPF application, I want to set the code selection programatically. By code selection I mean this part of the code…
anon
1
2
3
12 13