{/if}
{:else if lang === 'vega' || lang === 'vega-lite'}
{#if vegaHtml}
{#if !collapsed}
{#if edit}
{
saveCode();
}}
onChange={(value) => {
_code = value;
}}
/>
{:else}
{@html hljs.highlightAuto(code, hljs.getLanguage(lang)?.aliases).value ||
code}
{/if}
{:else}
{$i18n.t('{{COUNT}} hidden lines', {
COUNT: code.split('\n').length
})}
{/if}
{#if executing}
{$i18n.t('STDOUT/STDERR')}
{$i18n.t('Running...')}
{:else}
{#if stdout || stderr}
{$i18n.t('STDOUT/STDERR')}
{stdout || stderr}
{/if}
{#if result || files}
{$i18n.t('RESULT')}
{#if result}
{`${JSON.stringify(result)}`}
{/if}
{#if files}
{#each files as file}
{#if file.type.startsWith('image')}

{/if}
{/each}
{/if}
{/if}
{/if}