CS-Notes/docs/_style/prism-master/plugins/normalize-whitespace/demo.html

33 lines
477 B
Java
Raw Normal View History

2018-12-19 14:09:39 +08:00
<body>
<section id="main" class="language-javascript">
<pre>
<code>
var example = {
foo: true,
bar: false
};
</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>