在“添加评论"中使用格式标签. [英] Using formatting tags in "add comments"

查看:48
本文介绍了在“添加评论"中使用格式标签.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我想在问题和答案"下的添加评论"链接中添加代码时,我总是感到沮丧.似乎< pre>标签不起作用. <code>好像还可以.

我在CodeProject上搜索了一篇文章,解释了格式化注释的方式,但是找不到.

如果有人可以给出链接或解释它,那我会放心的!

干杯.

Hi guys,

I am always frustrated when I want to add code into the "Add comment" link under questions and answers. It seems that the <pre> tag is not working. <code> seems OK though.

I searched on CodeProject an article explaining how formatting works for comments, but I couldn''t find.

If somebody could give a link or explain it, then I would feel relieved!

Cheers.

推荐答案

此类讨论确实应该在此论坛中:

http://www.codeproject.com/Forums/1645/Site-Bugs-Suggestions.aspx [ ^ ]

我认为这个想法是注释不应该用于大代码片段.但是有时候别无选择.质量检查论坛中的评论系统是一个非常差劲的论坛实施.将完整的论坛(可用于文章和留言板)附加到质量检查线程会更好.这样,所有元讨论都将在论坛中进行,而只有有效答案会在主题的非论坛质量检查部分中发布.

注释也可以存在,但仅用于来回非常简单的查询,因此注释可能应限制在20个字左右(256个字符).
Such discussions should really be in this forum:

http://www.codeproject.com/Forums/1645/Site-Bugs-Suggestions.aspx[^]

I reckon the idea is that comments should not be used for big code snippets. But sometimes there''s no other way. The comment system in the QA forum is a very poor forum implementation. It would be better to have the full forum (that''s available for articles and message boards) attached to a QA thread. That way, any meta discussions take place in the forum, while only valid answers are posted in the non-forum QA portion of the thread.

Comments can also exist but merely for very simple queries to and fro, so comments should probably be limited to 20 words or so (256 characters).


我认为您不能使用格式化注释中的标签.看起来像< pre>标签无效.
I didn''t think you could use formatting tags in comments. Looks like the <pre> tag doesn''t work.


这篇关于在“添加评论"中使用格式标签.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆