- Answers will occasionally be moved to the Sandbox archive when there are too many of them. When using them to report bugs, keep an eye on the post.
- Stack Exchange sites are moving to a new syntax highlighter. This site, Meta Stack Exchange, as well as Meta Stack Overflow, are on the new highlighter, while all other sites are still using the older one. If using this post to test out syntax highlighting, the highlighting that appears here may or may not match that on the other sites until those are upgraded as well.
As per Jeff's suggestion in this comment:
You can use this question as a formatting sandbox. You can:
- edit this question itself (Community Wiki questions such as this one require only 100 reputation to edit instead of 2,000)
- post answers to this question (This question might be protected, requiring earning 10 reputation on this site to answer)
- post comments to this question or its answers
- test suspected bugs with the editor or the rendering
- post ponies (only when mods are asleep)
Beware that since the changes to syntax highlighting in December 2010, and the inline hints added in March 2011, no syntax highlighting is applied unless the question's tags or an inline hint enable it. So, to test highlighting here in the sandbox:
As of January 8, 2019, you can use GitHub-flavor fenced code blocks in your posts, specifying the language after the opening fence:
```html While not hinted otherwise: <html></html> source <b>goes</b> "here". ```
Create code blocks in any way (using the fence notation above, the four-space indent form, or using HTML
Save your post.
Use your browser's developer tools to edit the resulting HTML. To open developer tools, press F12, or ⌥⌘ I on Mac.
<pre>element and add the attribute
class="prettyprint", or change it into one of the valid syntax hints linked above, like
Run the following in the location bar:
prettyPrint()in the console.
Answers that are considered annoying or obnoxious, or that cause breakage for users, will be deleted. This is codified as a policy as of March 29, 2018.