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 19435 - No way to post preformatted code blocks
Summary: No way to post preformatted code blocks
Status: NEW
Alias: None
Product: webplatform.org
Classification: Unclassified
Component: QA Forums (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: team-webplatform-admin list
QA Contact: public-webplatform-bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-10 17:06 UTC by Andrew R
Modified: 2012-11-04 15:06 UTC (History)
2 users (show)

See Also:


Attachments

Description Andrew R 2012-10-10 17:06:01 UTC
There seems to be no obvious/official way, with the WYSIWYG editor, to post preformatted code blocks, let alone with any kind of syntax highlighting.
Comment 1 Alex Komoroske 2012-10-11 01:29:30 UTC
Using the "Examples" form fields on pages is the official way to do this, on page types that have it. For other page types, use the Single_Example template: http://docs.webplatform.org/wiki/Template:Single_Example . 

Although examples done with that template are not syntax highlighted _yet_, they will be soon once we resolve another bug. Using that template is the best way to make sure that syntax highlighting works as you expect when we enable it.
Comment 2 Andrew R 2012-10-11 01:35:00 UTC
Alex, this bug pertains to the Q&A forums, not the wiki.
Comment 3 Alex Komoroske 2012-10-11 01:36:40 UTC
... d'oh. Carry on. :-)
Comment 4 Jonathan Garbee 2012-11-04 15:06:43 UTC
We disabled the WYSIWYG editor completely.  There is thought going towards using a markdown editor for the Q&A though.  We should be able to make syntax highlighting with code blocks work in there.