function HighlightUtilities\getAvailableStyleSheets( $filePaths = false)
 

Get a list of available stylesheets.

By default, a list of filenames without the .css extension will be returned.
This can be configured with the $filePaths argument.

  • api
  • since 9.15.8.1
  • return string[]

function HighlightUtilities\getStyleSheet( $name)
 

Get the contents of the given stylesheet.

  • api
  • since 9.15.8.1
  • throws DomainException when the no stylesheet with this name exists
  • return false|string The CSS content of the stylesheet or FALSE when the stylesheet content could be read

function HighlightUtilities\getStyleSheetFolder()
 

Get the absolute path to the folder containing the stylesheets distributed in this package.

  • api
  • since 9.15.8.1
  • return string An absolute path to the folder

function HighlightUtilities\getStyleSheetPath( $name)
 

Get the absolute path to a given stylesheet distributed in this package.

  • api
  • since 9.15.8.1
  • throws DomainException when the no stylesheet with this name exists
  • return string The absolute path to the stylesheet with the given name

function HighlightUtilities\getThemeBackgroundColor( $name)
 

Get the RGB representation used for the background of a given theme as an
array of three numbers.

  • api
  • since 9.18.1.1
  • throws DomainException when no stylesheet with this name exists
  • return float[] An array representing RGB numerical values

function HighlightUtilities\splitCodeIntoArray( $html)
 

Convert the HTML generated by Highlighter and split it up into an array of lines.

  • api
  • since 9.15.6.1
  • throws RuntimeException when the DOM extension is not available
  • throws UnexpectedValueException when the given HTML could not be parsed
  • return string[]|false An array of lines of code as strings. False if an error occurred in splitting up by lines
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only