- From: poot <cvsmail@w3.org>
- Date: Wed, 14 Apr 2010 07:57:25 +0900 (JST)
- To: public-html-diffs@w3.org
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 := <mark>1.1</mark>;
 end.</code></pre></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><p>The highlighted part below is where the error lies:</p>
+<pre><code><span class=keyword>var</span> <span class=ident>i</span>: <span class=type>Integer</span>;
+<span class=keyword>begin</span>
+   <span class=ident>i</span> := <span class=literal><mark>1.1</mark></span>;
+<span class=keyword>end</span>.</code></pre></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 UTC