Class SyntaxHighlight
TextSanitizer filter
- Xoops\Core\Text\Sanitizer\SanitizerConfigurable
- Xoops\Core\Text\Sanitizer\SanitizerComponent
- Xoops\Core\Text\Sanitizer\FilterAbstract
- Xoops\Core\Text\Sanitizer\Extensions\SyntaxHighlight
Namespace: Xoops\Core\Text\Sanitizer\Extensions
Package: Xoops\Core\Text
Category: Sanitizer
Copyright: 2000-2015 XOOPS Project (http://xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Text/Sanitizer/Extensions/SyntaxHighlight.php
Package: Xoops\Core\Text
Category: Sanitizer
Copyright: 2000-2015 XOOPS Project (http://xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Text/Sanitizer/Extensions/SyntaxHighlight.php
public
boolean|mixed|string
|
#
applyFilter( string $source, string $language = 'php' )
apply syntax highlighting to a text string |
public
string
|
|
public
boolean
|
__construct()
|
getDefaultConfig()
|
protected static
array
|
$defaultConfiguration
default configuration values |
#
[
'enabled' => false,
'highlighter' => 'php', // Source code highlight: '' - disable; 'php' - php highlight; 'geshi' - geshi highlight
'language' => 'PHP'
]
|
$config,
$shortcodes,
$ts
|