https://github.com/mcanouil/quarto-language-cell-decorator
Quarto extension to add a decorator to the code cells to display the language name.
https://github.com/mcanouil/quarto-language-cell-decorator
code codecell computing-language quarto quarto-extension quarto-pub
Last synced: 11 months ago
JSON representation
Quarto extension to add a decorator to the code cells to display the language name.
- Host: GitHub
- URL: https://github.com/mcanouil/quarto-language-cell-decorator
- Owner: mcanouil
- License: mit
- Created: 2025-02-22T20:22:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-26T21:13:52.000Z (about 1 year ago)
- Last Synced: 2025-07-27T01:12:57.625Z (about 1 year ago)
- Topics: code, codecell, computing-language, quarto, quarto-extension, quarto-pub
- Language: Lua
- Homepage: https://m.canouil.dev/quarto-lcd/
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# Language Cell Decorator
This extension adds a decorator to the code cells to display the language name.
## Installation
```bash
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.
## Usage
Add the extension to your document's YAML front matter:
```yaml
filters:
- language-cell-decorator
```
## Example
Here is the source code for a minimal example: [example.qmd](example.qmd).
Outputs of `example.qmd`:
- [HTML](https://m.canouil.dev/quarto-language-cell-decorator/)
- [Reveal.js (HTML)](https://m.canouil.dev/quarto-language-cell-decorator/example-revealjs.html)