示例#1
0
function geshi_php_php5(GeSHiContext &$context)
{
    geshi_php_common($context);
    // Standard PHP5 keywords
    $context->addKeywordGroup(array('declare', 'abstract', 'catch', 'class', 'default', 'final', 'implements', 'interface', 'private', 'protected', 'public', 'self', 'throw', 'try'), 'keyword');
    // Constants
    $context->addKeywordGroup(array('E_STRICT', '__METHOD__'), 'constant');
    // PHP is embedded within HTML
    $context = $context->embedInside('html/html');
}
示例#2
0
文件: php.php 项目: rockylo/geshi-1.1
function geshi_php_php(GeSHiContext &$context)
{
    geshi_php_common($context);
    // PHP is embedded within HTML
    $context = $context->embedInside('html/html');
}