content
Packages
Interfaces
Classes
Files

Class: TemplateHighlighter

Source Location: /content/parser/template_highlighter.class.php [line 43]

Class Overview

Parser
   |
   --TemplateHighlighter
This is a syntax highlighter for the PHPBoost template syntax.

Author(s):



Class Details

This is a syntax highlighter for the PHPBoost template syntax.

Tags:

[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Class Methods

constructor TemplateHighlighter [line 49]

TemplateHighlighter TemplateHighlighter( )
Build a TemplateHighlighter object.
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method parse [line 59]

void parse( [int $line_number = GESHI_NO_LINE_NUMBERS], [bool $inline_code = false])
Highlights the code. It uses the geshi HTML syntax highlighter and then it highlights the specific template syntax.

Parameters:

int   $line_number   GESHI_NO_LINE_NUMBERS => no line numbers, GESHI_NORMAL_LINE_NUMBERS line numbers.
bool   $inline_code   true if it's a sigle line code, otherwise false.
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Inherited Methods

Class: Parser

Parser::Parser()
Builds a Parser object.
Parser::get_content()
Returns the content of the parser. If you called a method which parses the content, this content will be parsed.
Parser::get_page_path()
Returns the page path
Parser::get_path_to_root()
Returns the path to root attribute.
Parser::set_content()
Sets the content of the parser. When you will call a parse method, it will deal with this content.
Parser::set_page_path()
Sets the page path
Parser::set_path_to_root()
Sets the reference path for relative URL


Documentation generated on Tue, 28 Jul 2009 22:43:42 +0200 by phpDocumentor 1.4.1