Installation¶
Target group: Administrators
Note
The extension supports TYPO3 v9 LTS and v10 LTS.
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.
Installation via composer¶
Add a dependency
brotkrueml/codehighlight
to your project’scomposer.json
file to install the current stable version:composer req brotkrueml/codehighlight
Activate the extension in the Extension Manager.
Installation in Extension Manager¶
The extension needs to be installed as any other extension of TYPO3 CMS in the Extension Manager:
- Switch to the module Admin Tools > Extensions.
- Get the extension
- Get it from the Extension Manager: Select the
Get Extensions entry in the upper menu bar, 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 either the
t3x
orzip
version. Upload the file afterwards in the Extension Manager.
- Get it from the Extension Manager: Select the
Get Extensions entry in the upper menu bar, search for the
extension key
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):
