48 lines
704 B
HTML
48 lines
704 B
HTML
<body>
|
|
<section id="main" class="language-javascript">
|
|
|
|
<pre>
|
|
|
|
<code>
|
|
|
|
|
|
var example = {
|
|
foo: true,
|
|
|
|
bar: false
|
|
};
|
|
|
|
|
|
</code>
|
|
|
|
</pre>
|
|
|
|
<pre data-break-lines="50">
|
|
|
|
<code>
|
|
|
|
|
|
var there_is_a_very_very_very_very_long_line_it_can_break_it_for_you = true;
|
|
|
|
if (there_is_a_very_very_very_very_long_line_it_can_break_it_for_you === true) {
|
|
};
|
|
|
|
|
|
</code>
|
|
|
|
</pre>
|
|
|
|
</section>
|
|
|
|
<script src="prism.js"></script>
|
|
<script src="plugins/normalize-whitespace/prism-normalize-whitespace.js"></script>
|
|
<script type="text/javascript">
|
|
// Optional
|
|
Prism.plugins.NormalizeWhitespace.setDefaults({
|
|
'remove-trailing': true,
|
|
'remove-indent': true,
|
|
'left-trim': true,
|
|
'right-trim': true,
|
|
});
|
|
</script>
|
|
</body> |