Installation

Target group: Administrators

Note

The extension supports TYPO3 v9 LTS, TYPO3 v10 LTS and TYPO3 v11.

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

  1. Add a dependency brotkrueml/codehighlight to your project’s composer.json file to install the current stable version:

    composer req brotkrueml/codehighlight
    
  2. 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:

  1. Switch to the module Admin Tools > Extensions.
  2. Get the extension
    1. 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.
    2. Get it from typo3.org: You can always get the current version from https://extensions.typo3.org/extension/codehighlight/ by downloading either the t3x or zip version. Upload the file afterwards in the Extension Manager.

Preparation: Include static TypoScript

The extension ships some TypoScript code which needs to be included.

  1. Switch to the root page of your site.
  2. Switch to the Template module and select Info/Modify.
  3. Press the link Edit the whole template record and switch to the tab Includes.
  4. Select Code Highlight (codehighlight) from the available items at the field Include static (from extensions):
Include static TypoScript