Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 谷歌代码美化的标记_Asp.net Mvc_Google Code Prettify - Fatal编程技术网

Asp.net mvc 谷歌代码美化的标记

Asp.net mvc 谷歌代码美化的标记,asp.net-mvc,google-code-prettify,Asp.net Mvc,Google Code Prettify,在我看来,我有以下代码: <pre class="prettyprint linenums lang-cs"> @Model.ArticleText </pre> 然后,在视图中,该文本显示为一段漂亮的语法高亮显示的代码。但是,如果我想在该文本中添加一些注释,例如: "public ArticlesViewModel() { public string ArticleName { get; set; } }" "This is articles Vie

在我看来,我有以下代码:

<pre class="prettyprint linenums lang-cs">
    @Model.ArticleText
</pre>
然后,在视图中,该文本显示为一段漂亮的语法高亮显示的代码。但是,如果我想在该文本中添加一些注释,例如:

"public ArticlesViewModel()
{
    public string ArticleName { get; set; }
}"
"This is articles ViewModel:
public ArticlesViewModel()
{
    public string ArticleName { get; set; }
}"
是否有任何标记可以包装该注释,而代码美化将忽略这些标记?

来自代码:

/**
* A class that indicates a section of markup that is not code, e.g. to allow
* embedding of line numbers within code listings.
* @const
*/
var PR_NOCODE = 'nocode'