Download the PHP package karavas/highlight-js without Composer
On this page you can find all versions of the php package karavas/highlight-js. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download karavas/highlight-js
More information about karavas/highlight-js
Files in karavas/highlight-js
Package highlight-js
Short Description Create a highlight.js element on TYPO3 as normal content element
License GPL-2.0-or-later
Informations about the package highlight-js
Highlight.js, TYPO3 Extension
Create a Highlight.js element in TYPO3
For administrators
The extension needs to be installed as any other extension of TYPO3 CMS:
- Switch on the Extensions module
- On the upper left corner select the "Get Extensions" from the select menu
- On the search bar, type: highlight_js
- Click on the cloud icon and download the extension
Preparation: Include static TypoScript
The extension ships some TypoScript code which needs to be included.
- Switch on the Template module
- Go to your root page
- Switch to the Edit the whole template record
- Switch to the Includes tab
- Choose the Highlight.js TypoScript static template
- Save and close your settings
Include PageTS
The extension ships TSConfig too:
- Switch to your root page
- Edit the page
- Switch to Resources
- Include Highlight.js - PageTS
- 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
- Switch on the Page module
- Choose the page on the Pagetree that you would like the content element to be placed
- Click on the content button to create a new content element
- Switch to Highlight.js
- 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: