e.preventDefault()}>
(stylesOpen = !stylesOpen)} aria-expanded={stylesOpen} aria-label={t('notes.format')} title={t('notes.format')}>Aa
{#if stylesOpen}
{#each STYLES as style}
setStyle(style)}> {t(style.label)}
{/each}
setStyle({ key: 'bullet' })}>• {t('notes.styleBullet')}
setStyle({ key: 'numbered' })}>1. {t('notes.styleNumbered')}
{/if}
apply('bold')} title="⌘B" aria-label={t('notes.bold')}>
B
apply('italic')} title="⌘I" aria-label={t('notes.italic')}>
I
apply('underline')} title="⌘U" aria-label={t('notes.underline')}>
U
apply('strikeThrough')} aria-label={t('notes.strike')}>
S
</>
{#if asSource}
onsave?.()} >
{/if}
{ colourCode(); onsave?.(); }} onkeyup={() => { readState(); readSuggestions(); }} onclick={colourCode} onmouseup={readState} {onkeydown} {onpaste} >
{#if suggestions.length}
{#each suggestions as project, i (project.id)}
{ e.preventDefault(); accept(project); }} >
#{project.name}
{/each}
{/if}
{#each SYNTAX as item}
{item.mark}
{t(item.what)}
{/each}