示例#1
0
文件: SpanFactory.cs 项目: zyonet/Mvc
 public static SpanConstructor Markup(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.Markup, content, markup: true).With(new MarkupChunkGenerator()));
 }
示例#2
0
文件: SpanFactory.cs 项目: zyonet/Mvc
 public static SpanConstructor MetaCode(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.MetaCode, content, markup: false));
 }
示例#3
0
文件: SpanFactory.cs 项目: zyonet/Mvc
 public static UnclassifiedCodeSpanConstructor Code(this SpanFactory self, string content)
 {
     return(new UnclassifiedCodeSpanConstructor(
                self.Span(SpanKind.Code, content, markup: false)));
 }
示例#4
0
文件: SpanFactory.cs 项目: zyonet/Mvc
 public static SpanConstructor CodeTransition(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.Transition, content, markup: false).Accepts(AcceptedCharacters.None));
 }
示例#5
0
文件: SpanFactory.cs 项目: zyonet/Mvc
 public static SpanConstructor EmptyHtml(this SpanFactory self)
 {
     return(self.Span(SpanKind.Markup, new HtmlSymbol(self.LocationTracker.CurrentLocation, String.Empty, HtmlSymbolType.Unknown))
            .With(new MarkupChunkGenerator()));
 }