This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

TypoScript Reference for sourceopt

All configuration of sourceopt (beside the obsolete) can be done via constant editor (“PLUGIN.SOURCEOPT”)

Certainly you also can set the configuration directly via TypoScript setup.

Here is a reference that is valid for both, TypoScript setup and Constant Editor:

Property Data type Description Default
sourceopt.enabled boolean Is the optimization enabled for this template 1
sourceopt.removeGenerator boolean Remove <meta name="generator" content="TYPO3 x.x CMS"> 1
sourceopt.removeBlurScript boolean

Removes the script in the head that defines the blur-function and also removes the "onFocus="blurLink(this);"" of tags;

May cause problems if you work with JS

sourceopt.removeComments boolean Remove HTML-Comments 1
sourceopt.removeComments.keep.10 boolean Spare this comments from remove: Regular expressions that match comments that should not be removed. Very useful e.g. to keep the TYPO3SEARCH-Comments so indexed_search can work properly /^TYPO3SEARCH_/usi
sourceopt.formatHtml integer

Formats the code beautiful and easy readable. New lines and tabs are used in the usual way of illustrating the structure of an XML code.

This is a great help for developing and checking the code as well as compressing the code that it is faster transferred to the user agent.


  • 0 = off
  • 1 = no line break at all (code in one line)
  • 2 = minimalistic line breaks (structure defining box-elements)
  • 3 = aesthetic line breaks (important box-elements)
  • 4 = logic line breaks (all box-elements)
sourceopt.formatHtml.tabSize integer Defines the size of the tabs used for formating. If blank one tab is used. If a number is specified the specified number of blank spaces is used instead. This will only work together with formatHtml [empty]
sourceopt.formatHtml.debugComment boolean Includes a comment at the end of the html source code that points the numbers of open html tags. This will only work together with formatHtml [empty]