HighlightProviderInterface
in
An interface that contains the methods for a code highlight implementation that is used in the CMS to colour highlight source code for publication.
Tags
Table of Contents
Methods
- highlight() : string
- Highlights the text provided using colours to make the source code within the text more readable for humans.
Methods
highlight()
Highlights the text provided using colours to make the source code within the text more readable for humans.
public
highlight(string $source, string $language) : string
Parameters
- $source : string
-
The source code string.
- $language : string
-
The language identifier that will be passed as-is to the implementing class.