W3C home > Mailing lists > Public > spec-prod@w3.org > April to June 2010

Re: How to do xml syntax hilighting in Respec

From: Robin Berjon <robin@berjon.com>
Date: Tue, 29 Jun 2010 10:32:29 +0200
Cc: Spec Prod <spec-prod@w3.org>
Message-Id: <D395D2C7-E36F-4167-A645-0F6C8F220C0D@berjon.com>
To: Pratik Datta <pratik.datta@oracle.com>
Hi,

On Jun 29, 2010, at 08:39 , Pratik Datta wrote:
> Can ReSpec  do syntax highlighting?

Yes.

> I am trying to get it to syntax highlight an XML snippet, and it is not doing that.
>  
> I tried
> <pre class= “example”>
>   &lt;book/&gt;
> </pre>
>   
> I also tried with class= “example sh_xml”  but that didn’t work either.

The latter should work. If you look at http://dev.w3.org/2006/waf/widgets-access/ you can see that the examples are highlighted.

In your email you're using “” as quote characters instead of "" or '', is that in the source or only something that your email client did?

-- 
Robin Berjon - http://berjon.com/
Received on Tuesday, 29 June 2010 08:32:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:17 GMT