---
title: "Configuration Reference"
manual: "Beauty of Code"
version: "main"
permalink: "https://docs.typo3.org/permalink/fnagel/beautyofcode:configuration@main"
source: "Configuration/Index.rst"
rendered: "2026-11-14T15:27:10+00:00"
---

# Configuration Reference {#configuration}

Feel free to use the constant editor (go to: module template, root page,
constant editor, beautyofcode) to edit this settings. Add a Typoscript
template to overwrite these settings at any point in your sitetree(s).

## TypoScript Reference {#configuration-typoscript}

-   [Properties](https://docs.typo3.org/permalink/fnagel/beautyofcode:properties@main)
-   [Property details](https://docs.typo3.org/permalink/fnagel/beautyofcode:property-details@main)

### Properties {#properties}

| Property | Data type | [stdWrap](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Stdwrap.html#stdwrap) | Default |
| --- | --- | --- | --- |
| [baseUrl](https://docs.typo3.org/permalink/fnagel/beautyofcode:baseurl@main) | [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string) | no | `EXT:beautyofcode/Resources/Public/Javascript/vendor/syntax_highlighter/v2/` |
| [scripts](https://docs.typo3.org/permalink/fnagel/beautyofcode:scripts@main) | [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string) | no | `scripts/` |
| [styles](https://docs.typo3.org/permalink/fnagel/beautyofcode:styles@main) | [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string) | no | `styles/` |
| [includeAsDomReady](https://docs.typo3.org/permalink/fnagel/beautyofcode:includeasdomready@main) | [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean) |  | `false` |
| [brushes](https://docs.typo3.org/permalink/fnagel/beautyofcode:brushes@main) | [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string) | no | `Xml,JScript,CSharp,Plain` |
| [theme](https://docs.typo3.org/permalink/fnagel/beautyofcode:theme@main) | [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string) | no | `Default` |
| [showLabel](https://docs.typo3.org/permalink/fnagel/beautyofcode:showlabel@main) | [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean) |  | `1` |
| defaults.tab-size\_ | [integer](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-integer) |  | `4` |
| defaults.gutter\_ | [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean) |  | `1` |
| defaults.collapse\_ | [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean) |  | `0` |

### Property details {#property-details}

-   [baseUrl](https://docs.typo3.org/permalink/fnagel/beautyofcode:baseurl@main)
-   [scripts](https://docs.typo3.org/permalink/fnagel/beautyofcode:scripts@main)
-   [styles](https://docs.typo3.org/permalink/fnagel/beautyofcode:styles@main)
-   [includeAsDomReady](https://docs.typo3.org/permalink/fnagel/beautyofcode:includeasdomready@main)
-   [brushes](https://docs.typo3.org/permalink/fnagel/beautyofcode:brushes@main)
-   [theme](https://docs.typo3.org/permalink/fnagel/beautyofcode:theme@main)
-   [showLabel](https://docs.typo3.org/permalink/fnagel/beautyofcode:showlabel@main)
-   [defaults.tab-size](https://docs.typo3.org/permalink/fnagel/beautyofcode:defaults-tab-size@main)
-   [defaults.gutter](https://docs.typo3.org/permalink/fnagel/beautyofcode:defaults-gutter@main)
-   [defaults.collapse](https://docs.typo3.org/permalink/fnagel/beautyofcode:defaults-collapse@main)

#### baseUrl {#ts-plugin-tx-beautyofcode-baseurl}

`plugin.tx_beautyofcode.settings.baseUrl =` [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string)

Enter path to the resources directory by using EXT: or FILE: or absolute path
([http://your.domain.de/fileadmin/.../some-path/](http://your.domain.de/fileadmin/.../some-path/)). Make sure the relative paths `scripts/`
and `styles/` exists.

Use `https://cdnjs.cloudflare.com/ajax/libs/SyntaxHighlighter/3.0.83/` as online repository.
If you use online (CDN) repository you should not edit settings styles and scripts.

More info about online hosting see:
[https://cdnjs.com/libraries/SyntaxHighlighter](https://cdnjs.com/libraries/SyntaxHighlighter)

#### scripts {#ts-plugin-tx-beautyofcode-scripts}

`plugin.tx_beautyofcode.settings.scripts =` [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string)

Path to syntax highlighter core file and to the brushes (Java-Script files),
relative to the baseUrl. Leave empty or default when using online repository.

#### styles {#ts-plugin-tx-extensionkey-substelementuid}

`plugin.tx_beautyofcode.settings.styles =` [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string)

Path to syntax highlighter css files (css themes), relative to the [baseUrl](https://docs.typo3.org/permalink/fnagel/beautyofcode:baseurl@main).
Leave empty or default when using online repository.

#### includeAsDomReady {#includeasdomready}

`plugin.tx_beautyofcode.settings.includeAsDomReady =` [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean)

If using standalone version it's possible to add a JS domReady instead of
injecting the code at the bottom of the body. Useful when using minification
scripts. Possible options: false, jquery or standalone

#### brushes {#brushes}

`plugin.tx_beautyofcode.settings.brushes =` [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string)

Loaded programming languages: Define which programming languages should be
available. Less is more: every brush is lazy loaded a single js file.

**SyntaxHighlighter:** Add a separated list out of: AS3, Bash, ColdFusion, Cpp,
CSharp, Css, Delphi, Diff, Erlang, Groovy, Java, JavaFX, JScript, Perl, Php,
PowerShell, Python, Ruby, Sass, Scala, Typoscript, Sql, Vb, Xml, Yaml.

**Prism:** Add a separated list out of: actionscript, applescript, bash, c, clike,
coffeescript, cpp, csharp, css, css-extras, diff, erlang, gherkin, git, go, groovy,
http, java, javascript, less, markdown, markup, powershell, php, php-extras, plain,
python, ruby, sass, scala, scss, sql, twig, typoscript, yaml.

There are much more brushed available for Prism. You might want to extend the brushes
files bundled with this extension.

**Prism Note:** Prism uses its brushes in a dependency manner. For example the `clike`
brush is necessary to load before `php`(and therefore must be defined *before*
`php` in the `brushes` configuration.

#### theme {#theme}

`plugin.tx_beautyofcode.settings.theme =` [string](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-string)

Define a theme (which is basically a CSS file). Following themes are avaiable:

**SyntaxHighlighter:**
Default, Django, Eclipse, Emacs, FadeToGrey, FelixNagelv3 (which is dark minimal), MDUltra, Midnight, RDark.

**Prism:**
coy, okaidia, dark, funky, okaidia, solarizedlight, tomorrow, twilight.

#### showLabel {#showlabel}

`plugin.tx_beautyofcode.settings.showLabel =` [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean)

If set to false the label is hidden.

#### defaults.tab-size {#defaults-tab-size}

`plugin.tx_beautyofcode.settings.defaults.tab-size =` [integer](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-integer)

Specify a tabulator size. Tabulator chars will be changed to spaces.

#### defaults.gutter {#defaults-gutter}

`plugin.tx_beautyofcode.settings.defaults.gutter =` [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean)

Show or hide gutter. Helps user to recognize correct line.

#### defaults.collapse {#defaults-collapse}

`plugin.tx_beautyofcode.settings.defaults.collapse =` [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean)

Allows you to force highlighted elements on the page to be collapsed. A link
"show source" is displayed instead (not customizable yet). Not available in Prism.
