SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

AvalonEdit Xml Code Complete/Intellisense

Last post 06-04-2014 8:11 PM by MattWard. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-04-2014 7:17 PM

    • _eM_
    • Not Ranked
    • Joined on 06-04-2014
    • Posts 1

    AvalonEdit Xml Code Complete/Intellisense

    Hi,

    I need XML code completion based on XSD in my AvalonEdit based editor. I've read that XmlEditor control from SharpDevelop can do that.

    How can I integrate those 2? Or is there any other way to achieve my goal?

  • 06-04-2014 8:11 PM In reply to

    Re: AvalonEdit Xml Code Complete/Intellisense

    As it currently stands the XmlEditor in SharpDevelop is tied to SharpDevelop and uses APIs that are not available from AvalonEdit on its own. So you would need to write some code.

    What you will need to do is something along the lines of:

    1) Catch key press events from AvalonEdit.

    2) Use the key presses and feed them into bits of the Xml editor to get code completion results.

    3) Pass the results to AvalonEdit's completion window and show it.

    Item 2) is what the xml editor provides, everything else is from AvalonEdit. SharpDevelop has this logic mostly in the XmlCodeCompletionBinding class. I would start there.

    Whilst you could use the Xml editor assemblies directly I would look at re-using the source code. Otherwise you will need to have a lot of extra binaries included which you would not be using.

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.