This extension adds a decorator to the code cells to display the language name.
quarto add mcanouil/quarto-language-cell-decorator
This will install the extension under the _extensions
subdirectory.
If you're using version control, you will want to check in this directory.
Add the extension to your document's YAML front matter:
filters:
- language-cell-decorator
Here is the source code for a minimal example: example.qmd.
Outputs of example.qmd
: