HighlightProviderGeshi
in package
implements
HighlightProviderInterface
Wraps Geshi in the standard API defined in HighlightProviderInterface, for use in the Alpha CMS module.
Tags
Table of Contents
Interfaces
- HighlightProviderInterface
- An interface that contains the methods for a code highlight implementation that is used in the CMS to colour highlight source code for publication.
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(mixed $source, mixed $language) : string
Parameters
- $source : mixed
-
The source code string.
- $language : mixed
-
The language identifier that will be passed as-is to the implementing class.