コード例 #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)
 {
 }