mozilla/kuma — pull request #645 by lmorchard (2012-10-05 21:54:56+00:00)
Title: 797472 code sample models

*Do* merge this, if it seems good.

Going to try something different here: This PR consists of a series of commits, each a discrete change that should almost stand on its own and not break the site. Altogether, the PR implements *most* of a feature, but there are a few things left to wrap up.

What you should be able to spot-check on a dev VM, though, is this:

* Add some code listings inside a container div (in source view, [because there's no good editor yet](https://bugzilla.mozilla.org/show_bug.cgi?id=797480)), something like this:

HTML

<div class="foo">
<p>Hello world!</p>
<p>Unicode fun: Przykłady 例 예제 示例</p>
</div>

CSS

.foo p { color: red; }

JS

window.alert("Hi there!");

* Take the URL of the page, add `$samples/sample2`, eg:

https://developer-local.allizom.org/en-US/docs/User:lmorchard/TestCodeSamples$samples/s2

* Upon visiting that URL, you should see the results of the code sample as a live page