{#await code_promise} {:then}

You can display code with color, line numbers, and clipboard copying with Code, and you can click on the code to copy it to your clipboard:


It's designed similar to the Markdown component in that you can put the code in content="", the inner slot, or as a src="" url to load.

{ code }

Here is the same code in test.js being loaded via a src="".

{#if message} { message } {/if} {/await}