Installation¶
Target group: Administrators
Note
The extension works with TYPO3 v9 and v10.
The extension needs to be installed as any other extension of TYPO3 CMS:
- Use composer: The preferred way is to use the composer dependency manager:
composer req brotkrueml/codehighlight
. - Get it from the Extension Manager: Press the Retrieve/Update button in the Extension Manager backend module, search for the extension key codehighlight and import the extension from the repository.
- Get it from typo3.org: You can always get the current version from
https://extensions.typo3.org/extension/codehighlight/
by downloading the
zip
file. Upload the file afterwards in the Extension Manager.
Some basic configuration is available which is explained in the Configuration section.
Tip
Install the TYPO3 system extension “t3editor” to use the features of this editor in the backend content element.
Preparation: Include static TypoScript¶
The extension ships some TypoScript code which needs to be included.
- Switch to the root page of your site.
- Switch to the Template module and select Info/Modify.
- Press the link Edit the whole template record and switch to the tab Includes.
- Select Code Highlight (codehighlight) from the available items at the field Include static (from extensions):
