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

html5/spec Overview.html,1.4055,1.4056

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 13 Apr 2010 22:57:10 +0000
To: public-html-commits@w3.org
Message-Id: <E1O1p2c-0002xy-QE@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv11372

Modified Files:
	Overview.html 
Log Message:
Clarify <mark> vs syntax highlighting. (whatwg r5041)

Index: Overview.html
===================================================================
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:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 13 April 2010 22:57:12 GMT