Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 81c69f94d3
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (44 sloc) 1.274 kB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Winterdom.VisualStudio.Extensions.Text {
interface IMarkupLanguage {
bool IsDelimiter(String tagName);
bool IsName(String tagName);
bool IsAttribute(String tagName);
}
class XmlMarkup : IMarkupLanguage {
public bool IsDelimiter(String tagName) {
return tagName == "XML Delimiter";
}
public bool IsName(String tagName) {
return tagName == "XML Name";
}
public bool IsAttribute(String tagName) {
return tagName == "XML Attribute";
}
}
class XamlMarkup : IMarkupLanguage {
public bool IsDelimiter(String tagName) {
return tagName == "XAML Delimiter";
}
public bool IsName(String tagName) {
return tagName == "XAML Name";
}
public bool IsAttribute(String tagName) {
return tagName == "XAML Attribute";
}
}
class HtmlMarkup : IMarkupLanguage {
public bool IsDelimiter(String tagName) {
return tagName == "HTML Tag Delimiter" || tagName == "HTML Operator";
}
public bool IsName(String tagName) {
return tagName == "HTML Element Name";
}
public bool IsAttribute(String tagName) {
return tagName == "HTML Attribute Name";
}
}
}
Jump to Line
Something went wrong with that request. Please try again.