Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0



2.0.0 2019-11-05 15:47 UTC

This package is auto-updated.

Last update: 2024-05-06 20:15:16 UTC


Create a Highlight.js element in TYPO3

For administrators

The extension needs to be installed as any other extension of TYPO3 CMS:

  1. Switch on the Extensions module
  2. On the upper left corner select the "Get Extensions" from the select menu
  3. On the search bar, type: highlight_js
  4. Click on the cloud icon and download the extension

Preparation: Include static TypoScript

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

  1. Switch on the Template module
  2. Go to your root page
  3. Switch to the Edit the whole template record
  4. Switch to the Includes tab
  5. Choose the Highlight.js TypoScript static template
  6. Save and close your settings

Include PageTS

The extension ships TSConfig too:

  1. Switch to your root page
  2. Edit the page
  3. Switch to Resources
  4. Include Highlight.js - PageTS
  5. Save

Apply your own templates

Define on your TypoScript file the path that your templates are located.

tt_content {
  	highlight_js {
		templateRootPaths.500 = EXT:yourExtention/Resources/Private/Templates/
		partialRootPaths.500 = EXT:yourExtention/Resources/Private/Partials/
		templateName = Highlight.html

Apply Styles

On the constants editor, you can find a list with the current implemented styles. Select one and see it rendered on the frontend.

For editors

  1. Switch on the Page module
  2. Choose the page on the Pagetree that you would like the content element to be placed
  3. Click on the content button to create a new content element
  4. Switch to Highlight.js
  5. Choose your content element

Additional info

Since Highlight.js supports a load of languages, i can not include them all at once so if you want more styles or languages to be included, create an issue in order to get them asap included.

In case you have the TypoScript and FLUID language definitions, please submit them here so i will be able to add them on the extension: