<script lang="ts">
    import hljs from 'highlight.js';
    const languages = hljs.listLanguages();

    export let language: string | undefined = undefined;
</script>

<select bind:value={language} class="select select-primary select-bordered w-full max-w-xs">
  <option value="{undefined}" disabled selected>Choose programming language</option>
  {#each languages as lang}
    <option value="{lang}">{lang}</option>
  {/each}
</select>