Пример #1
0
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.MetaCode, content, markup: true));
 }
Пример #2
0
 public static SpanConstructor MarkupTransition(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.Transition, content, type).Accepts(AcceptedCharacters.None));
 }
Пример #3
0
 public static SpanConstructor MetaCode(this SpanFactory self, string content, CSharpSymbolType type)
 {
     return(self.Span(SpanKind.MetaCode, content, type));
 }
Пример #4
0
 public static SpanConstructor CodeTransition(this SpanFactory self, CSharpSymbolType type)
 {
     return(self
            .Span(SpanKind.Transition, SyntaxConstants.TransitionString, type)
            .Accepts(AcceptedCharacters.None));
 }
Пример #5
0
 public static SpanConstructor MarkupTransition(this SpanFactory self)
 {
     return(self
            .Span(SpanKind.Transition, SyntaxConstants.TransitionString, markup: true)
            .Accepts(AcceptedCharacters.None));
 }
Пример #6
0
 public static SpanConstructor CodeTransition(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.Transition, content, markup: false).Accepts(AcceptedCharacters.None));
 }
Пример #7
0
 public static UnclassifiedCodeSpanConstructor Code(this SpanFactory self, string content)
 {
     return(new UnclassifiedCodeSpanConstructor(
                self.Span(SpanKind.Code, content, markup: false)));
 }
Пример #8
0
 public static SpanConstructor CodeMarkup(this SpanFactory self, params string[] content)
 {
     return(self.Span(SpanKind.Code, content, markup: true).With(new MarkupChunkGenerator()));
 }
Пример #9
0
 public static SpanConstructor Markup(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.Markup, content, markup: true).With(new MarkupChunkGenerator()));
 }
Пример #10
0
 public static SpanConstructor Comment(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.Comment, content, type));
 }