{#if lang === 'mermaid'} {#if mermaidHtml}
{:else}
{code}
{/if} {:else}
{lang}
{#if lang.toLowerCase() === 'python' || lang.toLowerCase() === 'py' || (lang === '' && checkPythonCode(code))} {#if executing}
Running
{:else if run}
{ code = _code; await tick(); executePython(code); }}>{$i18n.t('Run')}
{/if} {/if} {#if save}
{saved ? $i18n.t('Saved') : $i18n.t('Save')}
{/if}
{copied ? $i18n.t('Copied') : $i18n.t('Copy')}
{ saveCode(); }} on:change={(e) => { _code = e.detail.value; }} />
{#if executing}
STDOUT/STDERR
Running...
{:else if stdout || stderr || result}
STDOUT/STDERR
{stdout || stderr || result}
{/if} {/if}