Code Highlighter

A component that provides syntax highlighting for code snippets.
Overview API

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 class="text-headline">In line code
    <code class="text-code-block">const helloWorld = () => alert ('Hello World!');</code>
  </h3>

On this page

Sponsor

Properties

Events

Methods

CSS Custom Properties