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

RE: How to do xml syntax hilighting in Respec

From: Pratik Datta <pratik.datta@oracle.com>
Date: Tue, 29 Jun 2010 11:18:56 -0700 (PDT)
Message-ID: <5ec9a3f7-b173-45ad-ad87-6ffb7c37fb5e@default>
To: Robin Berjon <robin@berjon.com>
Cc: Spec Prod <spec-prod@w3.org>, Frederick Hirsch <frederick.hirsch@nokia.com>, Thomas Roessler <tlr@w3.org>
Those special double quotes are not in my html,  Outlook tried to be smart, and fix my regular quotes.

Here is my html file

I looked the error console and I see this error:

Error: o is undefined
Source File: http://dev.w3.org/2009/dap/ReSpec.js/js/sh_main.min.js
Line: 4

However this one that you sent http://dev.w3.org/2006/waf/widgets-access/  works fine on my browser with syntax highlighting and all. I don't understand why my html is giving the error.


-----Original Message-----
From: Robin Berjon [mailto:robin@berjon.com] 
Sent: Tuesday, June 29, 2010 1:32 AM
To: Pratik Datta
Cc: Spec Prod
Subject: Re: How to do xml syntax hilighting in Respec


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


> 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 18:20:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:42:18 UTC