VS2010 extension to improve the XML editor experience
C#
Latest commit 5f904d1 Oct 6, 2013 @tomasr Fix potential exception on XML matching tagger when scrolling all the…
… way to the end of the document
Permalink
Failed to load latest commit information.
Properties Fix potential exception on XML matching tagger when scrolling all the… Oct 6, 2013
Sgml Replacing XmlReader with SgmlReader to improve support. Should now fi… Sep 20, 2013
img Adding missing image Oct 2, 2013
.gitignore Initial version highlighting just closing tags Apr 21, 2010
BetterXml.csproj Updating project and cleaning up code Sep 20, 2013
BetterXml.sln More renaming Apr 22, 2010
Definitions.cs Support for HTML as well Apr 28, 2010
Languages.cs Separating language-specific tests Apr 28, 2010
QuickInfo.cs Initial implementation. Can highlight opening and closing tag, and ha… Sep 18, 2013
QuickInfoController.cs Refactoring + Tooltip only shows on prefixes May 2, 2010
README.md Updating readme Oct 2, 2013
XmlTagMatchingTagger.cs Fix potential exception on XML matching tagger when scrolling all the… Oct 6, 2013
XmlTagger.cs
icon.png Adding extension icon Apr 23, 2010
preview.png Adding preview image and readme Apr 24, 2010
source.extension.vsixmanifest Fix potential exception on XML matching tagger when scrolling all the… Oct 6, 2013

README.md

BetterXml VS2010 Extension

This is a sample extension for Visual Studio 2010 that improves the XML editing experience.

Syntax Highlighting

  1. Highlighting XML closing tags with a format different from opening tags. Adjust the "XML Closing Tag" classification format to configure it.

  2. Highlighting XML prefixes on attributes and tags with a new format, configured using the "XML Prefix" classification format.

Both features are supported on XML, XAML and HTML documents.

classification sample

Namespace Tooltips

Tooltips showing the namepace URI associated with a prefix when you hover the mouse over the prefix.

tooltips sample

This can be a bit slow at times because right now it requires parsing the document partially. This feature is only supported for XML and XAML documents.

Matching Element Tags

When the caret is over an XML element, the element opening and closing tags will be highlighted.

highlight sample

Installation

  1. Install the Visual Studio 2010 SDK. You'll need it for building custom extensions.
  2. Open the solution in Visual Studio 2010 and build it.
  3. Close all open VS2010 instances.
  4. Using Windows Explorer, navigate to the project's output folder and double click on the BetterXml.vsix generated.

That's it!