Quarto Extension
Code blocks with a filename attribute display a window header with the filename. The decoration style depends on the style option (default: "macos").
fibonacci.py
With auto-filename: true (the default), code blocks without explicit filenames automatically show the language name in small-caps styling.
Code blocks without a language are not affected by the extension.
This is a plain code block without any language specified.
No window decoration is applied here.
To disable auto-generated filenames, set auto-filename: false in the extension configuration. Only code blocks with an explicit filename attribute will display window decorations.
Three decoration styles are available via the style option. The global style can be set in the document configuration. Individual blocks can override the style with the code-window-style attribute.
Traffic light buttons on the left, filename on the right.
Minimise, maximise, and close buttons on the right, filename on the left.
Plain filename on the left, no window decorations.
Set the global style in the document front matter:
Override per block with the code-window-style attribute: