Skip to content

Version 4.0.0

Latest
Compare
Choose a tag to compare
@futape futape released this 01 Apr 15:36
· 1 commit to master since this release

Breaking Changes

Added HighlighterInterface::highlightAreas()

Custom highlighters implementing the HighlighterInterface need to implement the highlightAreas() method. The method expects a string value and an array of area markers and has to highlight these areas of the passed string in their own way and return the highlighted result.
You may want to use HighlighterHelper::processAreas() to normalize and validate the areas array.

If your custom highlighter extends the AbstractStringHighlighter, you don't have to do anything, the method is already implemented.