The code-toggle
shortcode generates code blocks of various formats according to the configuration code of any supported format.
Formats
JSON
, TOML
and YAML
are supported.
Usage
With a filename:
Example
1{{< code-toggle filename="params" >}}
2{
3 "logo": "/images/logo.png",
4 "customCSS": ["foo.css", "bar.css"],
5 "codeBlock": {
6 "maxLines": 10
7 }
8}
9{{</ code-toggle >}}
markdown
params.toml
params.yaml
評論