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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:

  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:

https://github.com/highlightjs/highlight.js/issues/2030


All versions of highlight-js with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^8.7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package karavas/highlight-js contains the following files

Loading the files please wait ....