Heim >Backend-Entwicklung >PHP-Tutorial >问一个代码高亮<pre>标签那一种比较标准化些?

问一个代码高亮<pre>标签那一种比较标准化些?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:49:36872Durchsuche

问一个代码高亮<pre class="brush:php;toolbar:false">&lt;code&gt;&lt;/code&gt;标签那一种比较标准化些?</pre>

<code><code lang="php">
代码..  
</code>

<code class="brush:php;">
代码
</code>
</code>

回复内容:

问一个代码高亮<pre class="brush:php;toolbar:false">&lt;code&gt;&lt;/code&gt;标签那一种比较标准化些?</pre>

<code><code lang="php">
代码..  
</code>

<code class="brush:php;">
代码
</code>
</code>

code 一般用于行内代码,pre 用于行间

<pre class="brush:php;toolbar:false"></pre> 更好吧

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn