This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19383 - Code example in reference articles aren't highlighted
Summary: Code example in reference articles aren't highlighted
Status: RESOLVED DUPLICATE of bug 18902
Alias: None
Product: webplatform.org
Classification: Unclassified
Component: infrastructure (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Lea Verou
QA Contact: public-webplatform-bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-09 06:07 UTC by Chris Mills
Modified: 2012-11-04 15:08 UTC (History)
4 users (show)

See Also:


Attachments

Description Chris Mills 2012-10-09 06:07:19 UTC
If you go to http://docs.webplatform.org/wiki/css/cssom/currentStyle, you'll see that the code examples aren't highlighted - why is this? When they are entered in the form, they are wrapped in <pre> tags; sirely we should just wrap them in <syntaxhighlight> tags instead, so they would use the code highlighting?
Comment 1 Alex Komoroske 2012-10-09 14:10:26 UTC
Syntax-highlight didn't work for some reason (and now I can't remember exactly why). In any case, we were going to move to Lea's syntax highlighting stuff. I can't remember what happened there.
Comment 2 Lea Verou 2012-10-09 15:03:09 UTC
(In reply to comment #1)
> Syntax-highlight didn't work for some reason (and now I can't remember exactly
> why). In any case, we were going to move to Lea's syntax highlighting stuff. I
> can't remember what happened there.

That’s still the plan, we just had to prioritize other things ahead of it.
Comment 3 Lea Verou 2012-10-09 15:12:54 UTC
(In reply to comment #1)
> Syntax-highlight didn't work for some reason (and now I can't remember exactly
> why). In any case, we were going to move to Lea's syntax highlighting stuff. I
> can't remember what happened there.

...however, Doug said we are going to need <syntaxhighlight>, so that entities are escaped. We'll just tweak the extension to use Prism.
Comment 4 Jonathan Garbee 2012-11-04 15:08:47 UTC

*** This bug has been marked as a duplicate of bug 18902 ***