Path: blob/main/src/resources/schema/document-code.yml
12925 views
- name: code-copy1schema:2anyOf:3- enum: [hover]4- boolean5tags:6formats: [$html-all]7default: "hover"8description:9short: Enable a code copy icon for code blocks.10long: |11Enable a code copy icon for code blocks.1213- `true`: Always show the icon14- `false`: Never show the icon15- `hover` (default): Show the icon when the mouse hovers over the code block1617- name: code-link18schema: boolean19tags:20engine: knitr21formats: [$html-files]22default: false23description:24short: |25Enables hyper-linking of functions within code blocks26to their online documentation.27long: |28Enables hyper-linking of functions within code blocks29to their online documentation.3031Code linking is currently implemented only for the knitr engine32(via the [downlit](https://downlit.r-lib.org/) package).33A limitation of downlit currently prevents code linking34if `code-line-numbers` is also `true`.3536- name: code-annotations37schema:38anyOf:39- boolean40- enum: [hover, select, below, none]41default: below42description:43short: The style to use when displaying code annotations44long: |45The style to use when displaying code annotations. Set this value46to false to hide code annotations.4748- name: code-tools49tags:50formats: [$html-doc]51schema:52anyOf:53- boolean54- object:55closed: true56properties:57source:58anyOf:59- boolean60- string61toggle: boolean62caption: string63default: false64description:65short: "Include a code tools menu (for hiding and showing code)."66long: |67Include a code tools menu (for hiding and showing code).68Use `true` or `false` to enable or disable the standard code69tools menu. Specify sub-properties `source`, `toggle`, and70`caption` to customize the behavior and appearance of code tools.71- name: code-block-border-left72tags:73formats: [$html-doc, $pdf-all]74schema:75anyOf:76- string77- boolean78description:79short: "Show a thick left border on code blocks."80long: |81Specifies to apply a left border on code blocks. Provide a hex color to specify that the border is82enabled as well as the color of the border.83- name: code-block-bg84tags:85formats: [$html-doc, $pdf-all]86schema:87anyOf:88- string89- boolean90description:91short: "Show a background color for code blocks."92long: |93Specifies to apply a background color on code blocks. Provide a hex color to specify that the background color is94enabled as well as the color of the background.95- name: syntax-highlighting96tags:97formats: [$html-all, docx, ms, $pdf-all, typst]98schema:99anyOf:100- object:101closed: true102properties:103light: path104dark: path105- string:106completions:107- a11y108- arrow109- atom-one110- ayu111- ayu-mirage112- breeze113- breezedark114- dracula115- espresso116- github117- gruvbox118- haddock119- idiomatic120- kate121- monochrome122- monokai123- none124- nord125- oblivion126- printing127- pygments128- radical129- solarized130- tango131- vim-dark132- zenburn133description:134short: Specifies the coloring style to be used in highlighted source code.135long: |136Specifies the coloring style to be used in highlighted source code.137138Valid values:139140- `none`: Disables syntax highlighting for code blocks.141- `idiomatic`: Uses the format's native syntax highlighter142(e.g., Typst's built-in highlighting, LaTeX `listings` package,143or reveal.js highlight.js plugin).144- A style name (e.g., `pygments`, `tango`, `github`): Uses145Pandoc's skylighting with the specified theme.146- A path to a `.theme` file: Uses a custom KDE syntax147highlighting theme.148149For adaptive light/dark themes, specify an object with `light`150and `dark` properties pointing to theme files.151152- name: highlight-style153hidden: true154tags:155formats: [$html-all, docx, ms, $pdf-all, typst]156schema:157anyOf:158- object:159closed: true160properties:161light: path162dark: path163- string164description:165short: "Deprecated: use `syntax-highlighting` instead."166long: |167Deprecated: use `syntax-highlighting` instead.168169Specifies the coloring style to be used in highlighted source code.170171- name: syntax-definition172tags:173formats: [$html-all, docx, ms, $pdf-all, typst]174schema: path175hidden: true176description: "KDE language syntax definition file (XML)"177178- name: syntax-definitions179tags:180formats: [$html-all, docx, ms, $pdf-all, typst]181schema:182arrayOf: path183description: "KDE language syntax definition files (XML)"184185- name: listings186tags:187formats: [$pdf-all]188schema: boolean189description:190short: "Use the listings package for LaTeX code blocks."191long: |192Use the `listings` package for LaTeX code blocks. The package193does not support multi-byte encoding for source code. To handle UTF-8194you would need to use a custom template. This issue is fully195documented here: [Encoding issue with the listings package](https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings#Encoding_issue)196197- name: indented-code-classes198tags:199formats: [$html-all, docx, ms, $pdf-all]200schema:201arrayOf: string202description: "Specify classes to use for all indented code blocks"203204205