Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qiushiyan/language-marker

A quarto extension to display the language for code blocks.
https://github.com/qiushiyan/language-marker

Last synced: about 1 month ago
JSON representation

A quarto extension to display the language for code blocks.

Awesome Lists containing this project

README

        

# language-marker

A quarto extension to display the language for code blocks.

See examples at https://qiushiyan.github.io/language-marker/example.

Currently only includes some of my commonly used languages:

- Python
- R
- SQL
- JavaScript
- TypeScript
- bash
- C++
- Rust
- Java

## Installation

To install this extension in your current directory (or into the Quarto project that you're currently working in), use the following command:

```
quarto install extension qiushiyan/language-marker
```

## Enabling

Add this to your document or project options:

```yaml
filters:
- language-marker
```

## Usage

````markdown
```{python}
#| display-language: true

import matplotlib.pyplot as plt
plt.plot([1,23,2,4])
plt.show()
```
````