Class

TemplateHighlighter

Package: Content\Formatting\parser Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2016 11 14 Since: PHPBoost 3.0 - 2010 01 03 Contributor: Arnaud GENET elenwii@phpboost.com Contributor: mipel mipel@phpboost.com Located at: content/formatting/parser/TemplateHighlighter.class.php

This is a syntax highlighter for the PHPBoost template syntax.

AbstractParser implements FormattingParser
Extended by TemplateHighlighter
Methods summary
public
# __construct( )

Build a TemplateHighlighter object.

public
# parse( integer $line_number = GESHI_NO_LINE_NUMBERS, boolean $inline_code = false )

Highlights the code. It uses the geshi HTML syntax highlighter and then it highlights the specific template syntax.

Constants summary
string TPL_BRACES_STYLE
# 'color:#7F3300;'
string TPL_VARIABLE_STYLE
# 'color:#FF6600; font-weight: bold;'
string TPL_NESTED_VARIABLE_STYLE
# 'color:#8F5211;'
string TPL_SHARP_STYLE
# 'color:#9915AF; font-weight: bold;'
string TPL_KEYWORD_STYLE
# 'color:#000066; font-weight: bold;'
Constants inherited from AbstractParser
PICK_UP, REIMPLANT
Annonces