예제 #1
0
        public override void VisitInlineCode(InlineCodeComment comment, CommentRendererContext context)
        {
            if (!string.IsNullOrWhiteSpace(comment.Code))
            {
                var code = comment.Code;
                code = code.Replace("{", "{{").Replace("}", "}}");
                code = code.UnintendCode();

                context.Builder.AppendRaw("<code>");
                context.Builder.AppendEncoded(code);
                context.Builder.AppendRaw("</code>");
            }
        }
예제 #2
0
 public override void VisitInlineCode(InlineCodeComment comment, StringBuilder context)
 {
     context.Append("<c>");
     context.Append(comment.Code);
     context.Append("</c>");
 }
예제 #3
0
 public override void VisitInlineCode(InlineCodeComment comment, CommentRendererContext context)
 {
     context.Writer.RenderBeginTag(HtmlTextWriterTag.I);
     context.Writer.Write(comment.Code);
     context.Writer.RenderEndTag();
 }
예제 #4
0
 /// <summary>
 /// Visits a <c>inlinecode</c> comment.
 /// </summary>
 /// <param name="comment">The comment.</param>
 /// <param name="context">The context.</param>
 public virtual void VisitInlineCode(InlineCodeComment comment, TContext context)
 {
 }