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

Capture/modify paste event in AvalonEdit

Is there any way to capture the paste event in an AvalonEdit text editor so that the data can be modified? We are having users paste data from Excel, and for some reason that data is showing up with an extra newline. This means that if they paste…
zaknotzach
  • 977
  • 1
  • 9
  • 18
4
votes
3 answers

Binding Failure in WPF using MVVM

I have created a custom TextEditor control that inherits from AvalonEdit. I have done this to facilitate the use of MVVM and Caliburn Micro using this editor control. The [cut down for display purposes] MvvTextEditor class is public class…
MoonKnight
  • 23,214
  • 40
  • 145
  • 277
4
votes
1 answer

Hooking-up commands in AvalonEdit used in ListView's ItemTemplate doesn't work

I have used AvalonEdit control in my project. When I use shortcut keys like Ctrl+C or Ctrl+V, associated copy/paste commands works fine. I decided to use these commands in context menu for more usability because some users get used to right-click…
Naser Asadi
  • 1,153
  • 18
  • 35
3
votes
2 answers

Loading AvalonEdit syntax highlighting definitions from resource

I have an AvalonEdit text box, and I want to include syntax highlighting. I've already created my .xshd file, and I have it in my project as a Resource. Now how do I apply it to my AvalonEdit box? I've looked through a bunch of tutorials, but none…
Entity
  • 7,972
  • 21
  • 79
  • 122
3
votes
1 answer

Text editor with intellisense support for web like Avalon Editor

I need the text editor for web (jQuery) with the code completion (intelli-sense) support like the AvalonEditor for the WPF framework. Please share the suggestions. Requirements: I will have a set of keywords, if the user types the word and it…
3
votes
1 answer

BraceFolding in AvalonEdit

I use the BraceFoldingStrategy by Daniel Grünwald: public IEnumerable CreateNewFoldings(ITextSource document) { List newFoldings = new List(); Stack startOffsets = new…
anon
3
votes
2 answers

AvalonEdit FoldingStrategy by Indent (Python)

Has someone ever tried to create a FoldingStrategy by the indent level? Like for the programming language python. BraceFoldingStrategy is no problem because you have a fixed start and end tag. Has someone a idea to create this for tab indents?
Momo
  • 456
  • 5
  • 22
3
votes
1 answer

WPF Control inside ElementHost is invisible

I have a WPF control (the ICSharpCode.AvalonEdit.TextEditor) in a Winforms project inside an ElementHost. I have confirmed with the debugger that the TextEditor is actually set as the child of the ElementHost, and all its properties are being set…
Migwell
  • 18,631
  • 21
  • 91
  • 160
3
votes
1 answer

Syntax highlighting with AvalonEdit

I am trying to write a regex for AvalonEdit.TextEditor to mark everything after the second | a certain color. Example(value should be a color): action|key|value I am trying something like this but it doesn't work because I can't specify the group…
Alioooop
  • 465
  • 5
  • 12
3
votes
0 answers

How to add images to text (AvalonEdit)?

How to add images to text? I use AvalonEdit. It must be like this: XAML
code211218
  • 127
  • 2
  • 6
3
votes
1 answer

AvalonEdit XSHD-Ruleset (for tex)

I'm using the AvalonEdit control in and I have a small problem with the xshd-ruleset (for tex): There is a section in the original file 'syntaxdefinition for TeX document 2001 by Mike Krueger (gleaned from Jedit)' about special keywords and I'm…
zee
  • 661
  • 1
  • 10
  • 26
3
votes
1 answer

AvalonEdit - Visible Text

I try to get the visible text of the avalonedit control, but the VisualLines[] only handles wordwrap with TextLines[] and I dont know how to check if a TextLine is in the visible area or not. The problem also would be solved if I can get the start-…
zee
  • 661
  • 1
  • 10
  • 26
3
votes
0 answers

How to group undo operations in AvalonEdit

When typing quickly and then undoing by pressing Ctrl+Z, AvalonEdit's undo feature goes a character at a time instead of grouping the undo operations where typing is paused. I've tried invoking undo groupings on text changed events but often run…
Mike Ward
  • 3,211
  • 1
  • 29
  • 42
3
votes
1 answer

Using AvalonEdit in Sharpdevelop 3.x

I am very curious to know if it is possible to replace the normal ICSharpCode.TextEditor with AvalonEdit in Sharpdevelop 3.x. Frankly speaking AvalonEdit is way too better than ICSharpCode.TextEditor, so it would be better to use AvalonEdit in…
Anindya Chatterjee
  • 5,824
  • 13
  • 58
  • 82
3
votes
1 answer

Iron python debugger for my application

I have a WPF application.It has a iron python script editor using AvalonEdit. We were able to validate and run the iron python scripts using this application. But we need to integrate an iron python debugger in to this application. Can anyone…
Prasanth V J
  • 1,126
  • 14
  • 32
1 2
3
12 13