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

175 questions
67
votes
1 answer

AvalonEdit: Cascading HighlightingColorizers

I want to cascade the SyntaxHighlighting Engine of AvalonEdit. I have 2 HighlightingDefinitions. The first one is the main syntax. The second one is a complex multiline-preprocessor-markup-language. For this reason it is too complicated to embbed…
0xDEADBEEF
  • 3,269
  • 7
  • 33
  • 61
30
votes
5 answers

Two Way Binding to AvalonEdit Document Text using MVVM

I want to include an AvalonEdit TextEditor control into my MVVM application. The first thing I require is to be able to bind to the TextEditor.Text property so that I can display text. To do this I have followed and example that was given in Making…
MoonKnight
  • 23,430
  • 34
  • 134
  • 249
24
votes
5 answers

How do I create an AvalonEdit syntax file (.xshd) and embed it into my assembly?

I'm trying to define some custom highlighting rules for AvalonEdit. There doesn't seem to be any documentation for this -- there's some documentation on the file format, but nothing on how to actually load and use the definition once you've created…
Joe White
  • 87,312
  • 52
  • 206
  • 320
23
votes
3 answers

WPF AvalonEdit SQL xhsd request

I've looked on the internet (over and over) and I couldn't find an SQL.vshd file for AvalonEdit, I've used the old format version but it makes the editor bug (it doesn't show anymore at all), So I'm wondering maybe someone has done such a file…
CoolStraw
  • 5,060
  • 8
  • 38
  • 64
18
votes
3 answers

Making AvalonEdit MVVM compatible

I'm trying to make Avalon MVVM compatible in my WPF application. From googling, I found out that AvalonEdit is not MVVM friendly and I need to export the state of AvalonEdit by making a class derived from TextEditor then adding the necessary…
l46kok
  • 6,178
  • 34
  • 95
  • 168
17
votes
2 answers

Embedding word 2010 editor in a wpf application

How do I use the word editor in a WPF application? Is it possible using windows forms hosting in WPF only? Is there another way to accomplish that? I found AvalonEdit but it does not have features that I need. So using this way, my problem may not…
Mostafa Rezaei
  • 470
  • 1
  • 5
  • 12
17
votes
1 answer

AvalonEdit: highlight current line even when not focused

I'm using AvalonEdit, and I want the user to always be able to see which line the caret is on, even when the editor does not have focus. To that end, I've found and adapted some code that uses a BackgroundRenderer to highlight the background of the…
Joe White
  • 87,312
  • 52
  • 206
  • 320
17
votes
3 answers

How can I add this WPF control into my WinForm?

I know that I must use an ElementHost to display a WPF control in a WinForm, but as the WPF control is third party software and it only comes with an XML file and a DLL file. The control is AvalonEdit, I added both the ICSharpCode.AvalonEdit.xml and…
Brandon Miller
  • 2,157
  • 7
  • 31
  • 52
15
votes
1 answer

ScintillaNET vs AvalonEdit for providing scripting interface for a WPF Application

I am working on a project which includes implementing a scripting interface for my WPF (.Net4) windows Application. I am curious if anyone can suggest a preferred editor, AvalonEdit vs ScintillaNET. Any pitfalls and advantages of one over the other.…
Bhuvan
  • 1,461
  • 3
  • 22
  • 46
14
votes
5 answers

Does AvalonEdit :TextEditor has quick search/replace functionality?

I use AvalonEdit:TextEditor. Can i enable quick search dialog (on Ctrl-F for example) for this control? Or maybe someone has code for search words into AvalonEdit:TextEditor text?
Frank59
  • 2,783
  • 2
  • 29
  • 44
12
votes
1 answer

AvalonEdit :: How do I preserve current state in the UndoStack?

I am currently working on implementing AvalonEdit in an HTML WYSIWYG/"Source Code" side-by-side editor. When the user switches from Design Mode (a RichTextBox) to Source Mode (AvalonEdit TextEditor) the XAML from the RTB is converted to HTML and…
Scott Baker
  • 8,951
  • 14
  • 46
  • 83
11
votes
5 answers

AvalonEdit Change Syntax Highlighting in Code

I want to change the Syntax Highlighting of AvalonEdit in my Code. XAML: C#: public string syntaxHighlighting { get; set; } public MainWindow() { …
Karl_Schuhmann
  • 1,182
  • 5
  • 15
  • 36
10
votes
1 answer

AvalonEdit highlight matching characters

Is there an easy way using Avalon edit to highlight matching brackets and other characters like {}""?
Lee
  • 7,216
  • 13
  • 48
  • 82
10
votes
3 answers

Two-way binding in AvalonEdit doesn't work

I have used AvalonEdit in my project that is based on WPF and MVVM. After reading this post I created the following class: public class MvvmTextEditor : TextEditor, INotifyPropertyChanged { public static DependencyProperty DocumentTextProperty…
Naser Asadi
  • 1,085
  • 16
  • 34
9
votes
2 answers

Highlight all occurrences of selected word in AvalonEdit

I need to highlight all occurrences of selected word in AvalonEdit. I created an instance of HihglinghtingRule class: var rule = new HighlightingRule() { Regex = regex, //some regex for finding occurences Color = new…
Yury Permiakov
  • 135
  • 1
  • 8
1
2 3
11 12