示例#1
0
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.MetaCode, content, type));
 }
示例#2
0
 public static SpanConstructor Comment(this SpanFactory self, string content, CSharpSymbolType type)
 {
     return(self.Span(SpanKind.Comment, content, type));
 }
示例#3
0
 public static SpanConstructor MarkupTransition(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.Transition, content, type).Accepts(AcceptedCharacters.None));
 }
示例#4
0
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.MetaCode, content, markup: true));
 }
示例#5
0
 public static SpanConstructor CodeTransition(this SpanFactory self, CSharpSymbolType type)
 {
     return(self.Span(SpanKind.Transition, SyntaxConstants.TransitionString, type).Accepts(AcceptedCharacters.None));
 }
示例#6
0
 public static SpanConstructor MarkupTransition(this SpanFactory self)
 {
     return(self.Span(SpanKind.Transition, SyntaxConstants.TransitionString, markup: true).Accepts(AcceptedCharacters.None));
 }
示例#7
0
 public static SpanConstructor CodeTransition(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.Transition, content, markup: false).Accepts(AcceptedCharacters.None));
 }
示例#8
0
 public static UnclassifiedCodeSpanConstructor Code(this SpanFactory self, string content)
 {
     return(new UnclassifiedCodeSpanConstructor(
                self.Span(SpanKind.Code, content, markup: false)));
 }
示例#9
0
 public static SpanConstructor EmptyHtml(this SpanFactory self)
 {
     return(self.Span(SpanKind.Markup, new HtmlSymbol(self.LocationTracker.CurrentLocation, String.Empty, HtmlSymbolType.Unknown))
            .With(new MarkupCodeGenerator()));
 }
示例#10
0
 public static UnclassifiedCodeSpanConstructor EmptyCSharp(this SpanFactory self)
 {
     return(new UnclassifiedCodeSpanConstructor(
                self.Span(SpanKind.Code, new CSharpSymbol(self.LocationTracker.CurrentLocation, String.Empty, CSharpSymbolType.Unknown))));
 }
示例#11
0
 public static SpanConstructor Markup(this SpanFactory self, params string[] content)
 {
     return(self.Span(SpanKind.Markup, content, markup: true).With(new MarkupCodeGenerator()));
 }