W3C home > Mailing lists > Public > public-html-diffs@w3.org > April 2010

hixie: Clarify <mark> vs syntax highlighting. (whatwg r5041)

From: poot <cvsmail@w3.org>
Date: Wed, 14 Apr 2010 07:57:25 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100413225725.85ED22BC9F@toro.w3.mag.keio.ac.jp>
hixie: Clarify <mark> vs syntax highlighting. (whatwg r5041)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4055&r2=1.4056&f=h
http://html5.org/tools/web-apps-tracker?from=5040&to=5041

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4055
retrieving revision 1.4056
diff -u -d -r1.4055 -r1.4056
--- Overview.html	13 Apr 2010 22:49:10 -0000	1.4055
+++ Overview.html	13 Apr 2010 22:57:06 -0000	1.4056
@@ -16096,6 +16096,16 @@
    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">
 
    <p>This is another example showing the use of <code><a href="#the-mark-element">mark</a></code> to
Received on Tuesday, 13 April 2010 22:57:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:19 GMT