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

AvalonEdit: Copy takes forever for large highlighted text files

Actually this was asked on http://community.sharpdevelop.net/forums/p/21949/56153.aspx#56153 but with no answer yet - so I try it here. I'm using Avalon Edit (ICSharpCode.AvalonEdit.dll 4.4.2) in a WPF 4.0 application. I have loaded a text file (~7…
3
votes
2 answers

Select Word like Double Click in AvalonEdit

Is there a helper method in AvalonEdit to select a word similar to how double-clicking the mouse does? I need it to write a SelectWordFromCurrentCaretPosition function.
Mike Ward
  • 3,211
  • 1
  • 29
  • 42
3
votes
1 answer

How to center text in AvalonEdit?

I'm using ICSharpCode's AvalonEdit text editor, and I have a custom DocumentColorizingTransformer. I would like to center certain lines of text inside of ColorizeLine. Is this possible? I've been able to figure out how to change the line's text in…
encoder
  • 595
  • 6
  • 14
3
votes
0 answers

Document Outline in AvalonEdit

I am using the AvalonEdit in my app. In order to provide users better code navigation I am trying to provide a Document Outline of the source code, so I am wondering if AvalonEdit support it provide in in tree style manner. Edit: It seems that there…
Jim
  • 2,760
  • 8
  • 42
  • 66
3
votes
1 answer

How to get the current vertical scroll bar position with Avalon TextEdtior

External Resourse: http://www.codeproject.com/Articles/42490/Using-AvalonEdit-WPF-Text-Editor I am using the editor for showing a log file and would like it to always scroll to the button when a new line are added, but only if it was at the bottom…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
3
votes
1 answer

AvalonEdit: Determine if you are in a Comment

For AvalonEdit I have defined "Comments" in the xshd-File. Now, in my program, I would like to determine whether a given offset lies inside or outside of a comment. I did find some code on the net, namely: …
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
3
votes
2 answers

How to Set Syntax Highlighting in AvalonEdit?

I'm trying to set the Syntax Highlighting in my program I'm making that uses AvalonEdit This is the code that I'm using: StreamResourceInfo sri = Application.GetResourceStream(new Uri("lua.xshd")); using (Stream s = sri.Stream) { …
Zach
  • 37
  • 2
  • 9
3
votes
4 answers

Changing default line height in avalon edit

I am writing a custom software using avalon edit and I am looking for a way to make the space (height) between lines bigger. At the moment I am forced to add an empty line every time the user has ended writing a line and wants to write another. I…
legrandviking
  • 2,348
  • 1
  • 22
  • 29
3
votes
1 answer

Avalonedit how to get the top visible line

In Avalonedit, how do I get the line number of the very top line that is visible to the user? I believe I'm supposed to make some use out of VisualLines but it isn't helping.
TtT23
  • 6,876
  • 34
  • 103
  • 174
3
votes
1 answer

Uppercasing in AvalonEdit

I am writing a movie script editor using AvalonEdit. I extended the DocumentLine class to have a "Type" property, with the value representing either a "Character", "Dialog Line", etc. I would like document lines of a certain type within the script…
Hussein Khalil
  • 1,585
  • 2
  • 25
  • 47
3
votes
1 answer

AvalonEdit (C#) Custom attributes in XSHD files

I'm working on highlighting a small scripting language (that is not a derivative of any of the built in's) and I had a custom XML file setup for different syntax keywords and such. I would really like to use the XSHD system that exists in AvalonEdit…
Oyvind Andersson
  • 362
  • 6
  • 22
3
votes
2 answers

How can I use AvalonEdit to edit XML files

I would like to include an XML editor in my app - similar to VS's XML editor with auto-coloring, etc. AvalonEdit sounds like a great solution. However, AvalonEdit comes with a sample for C# syntax, not XML syntax. Is there a sample for XML syntax…
user380719
  • 9,663
  • 15
  • 54
  • 89
2
votes
0 answers

AvalonEdit TextEdit Not Scrolling when used in a usercontrol inside Itemscontrol

I am using Avalon Edit control inside an itemscontrol. The scrollviewer is not scrolling when the cursor position changes. here is the…
kprakas
  • 54
  • 5
2
votes
1 answer

Bind AvalonEdit to XML

I'm using an AvalonEdit control in my WPF project, and I use it with XML syntax highlighting. I am just using it as an XML editor (no need for tree view on the side or anything). What I want is: Bind it to some sort of XML data structure, and get…
Itays
  • 53
  • 1
  • 6
2
votes
0 answers

AvalonEdit How to Create indent guide lines?

How to Create indent guide lines in AvalonEdit, just like in Visual Studio?
ItemCode
  • 21
  • 2