Home Components Colors Typography Blog Blocks
Peacock Home Components Colors Typography Blog Blocks Direction Theme

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>
On this page

Code Highlighter

Sponsor