Skip to content

Commit

Permalink
[e] (0) Clarify <mark> vs syntax highlighting.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9504

git-svn-id: http://svn.whatwg.org/webapps@5041 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 13, 2010
1 parent db6183c commit cd7b56c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions complete.html
Expand Up @@ -18756,6 +18756,16 @@ <h4 id=the-mark-element><span class=secno>4.6.17 </span>The <dfn><code>mark</cod
i := &lt;mark&gt;1.1&lt;/mark&gt;;
end.&lt;/code&gt;&lt;/pre&gt;</pre>

<p>This is separate from <em>syntax highlighting</em>, for which
<code><a href=#the-span-element>span</a></code> is more appropriate. Combining both, one would
get:</p>

<pre>&lt;p&gt;The highlighted part below is where the error lies:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;span class=keyword&gt;var&lt;/span&gt; &lt;span class=ident&gt;i&lt;/span&gt;: &lt;span class=type&gt;Integer&lt;/span&gt;;
&lt;span class=keyword&gt;begin&lt;/span&gt;
&lt;span class=ident&gt;i&lt;/span&gt; := &lt;span class=literal&gt;&lt;mark&gt;1.1&lt;/mark&gt;&lt;/span&gt;;
&lt;span class=keyword&gt;end&lt;/span&gt;.&lt;/code&gt;&lt;/pre&gt;</pre>

</div>

<div class=example>
Expand Down
10 changes: 10 additions & 0 deletions index
Expand Up @@ -18654,6 +18654,16 @@ begin
i := &lt;mark&gt;1.1&lt;/mark&gt;;
end.&lt;/code&gt;&lt;/pre&gt;</pre>

<p>This is separate from <em>syntax highlighting</em>, for which
<code><a href=#the-span-element>span</a></code> is more appropriate. Combining both, one would
get:</p>

<pre>&lt;p&gt;The highlighted part below is where the error lies:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;span class=keyword&gt;var&lt;/span&gt; &lt;span class=ident&gt;i&lt;/span&gt;: &lt;span class=type&gt;Integer&lt;/span&gt;;
&lt;span class=keyword&gt;begin&lt;/span&gt;
&lt;span class=ident&gt;i&lt;/span&gt; := &lt;span class=literal&gt;&lt;mark&gt;1.1&lt;/mark&gt;&lt;/span&gt;;
&lt;span class=keyword&gt;end&lt;/span&gt;.&lt;/code&gt;&lt;/pre&gt;</pre>

</div>

<div class=example>
Expand Down
10 changes: 10 additions & 0 deletions source
Expand Up @@ -19870,6 +19870,16 @@ begin
i := &lt;mark>1.1&lt;/mark>;
end.&lt;/code>&lt;/pre></pre>

<p>This is separate from <em>syntax highlighting</em>, for which
<code>span</code> is more appropriate. Combining both, one would
get:</p>

<pre>&lt;p>The highlighted part below is where the error lies:&lt;/p>
&lt;pre>&lt;code>&lt;span class=keyword>var&lt;/span> &lt;span class=ident>i&lt;/span>: &lt;span class=type>Integer&lt;/span>;
&lt;span class=keyword>begin&lt;/span>
&lt;span class=ident>i&lt;/span> := &lt;span class=literal>&lt;mark>1.1&lt;/mark>&lt;/span>;
&lt;span class=keyword>end&lt;/span>.&lt;/code>&lt;/pre></pre>

</div>

<div class="example">
Expand Down

0 comments on commit cd7b56c

Please sign in to comment.