Code Highlighter
A component that provides syntax highlighting for code snippets.
Usage
const helloWorld = () => alert ('Hello World!');
export { helloWorld };
<wc-code-highlighter line-numbers="true" language="javascript">
<pre><code>
const helloWorld = () => alert ('Hello World!');
export { helloWorld };
</code></pre>
</wc-code-highlighter>
In line code
const helloWorld = () => alert ('Hello World!');
<h3>In line code
<code>const helloWorld = () => alert ('Hello World!');</code>
</h3>
Home