Summary
- File
- Package hierarchy Formatting\parser
- Class hierarchy \AbstractParser \PlainCodeHighlighter
This is a manual syntax highlighter for plain code with the [highlight] tag to choose what to highlight.
This is a manual syntax highlighter for plain code with the [highlight] tag to choose what to highlight.
__construct()
Build a PlainCodeHighlighter object.
None found |
get_content() : string
Returns the content of the parser. If you called a method which parses the content, this content will be parsed.
The content of the parser.
None found |
set_content(string $content)
Sets the content of the parser. When you will call a parse method, it will deal with this content.
string | $content | Content |
None found |
set_path_to_root(string $path)
Sets the reference path for relative URL
string | $path | Path |
None found |
get_path_to_root() : string
Returns the path to root attribute.
The path
None found |
set_page_path(string $page_path)
Sets the page path
string | $page_path | Page path |
None found |
get_page_path() : string
Returns the page path
path
None found |
add_module_special_tag( $pattern, $replacement)
{@inheritdoc}
$pattern | ||
$replacement |
None found |
get_module_special_tags()
{@inheritdoc}
None found |
parse()
{@inheritdoc}
None found |
_parse_imbricated(string $match, string $regex, string $replace)
Parses a nested tag
string | $match | The regular expression which matches the tag to replace |
string | $regex | The regular expression which matches the replacement |
string | $replace | The replacement syntax. |
None found |
parse_tag_args(string $matches, string $allowed_args = array())
Parses tag args to get allowed ones
string | $matches | The regular expression which matches the tag args |
string | $allowed_args | The args that are allowed to be present |
None found |
$content : string
None found |
$array_tags : array<mixed,string>
None found |
$path_to_root : string
None found |
$page_path : string
None found |
$module_special_tags : array<mixed,string>
None found |
PICK_UP = true
None found |
REIMPLANT = false
None found |
HIGHLIGHTING_STYLE = 'color:#BA154C; font-weight:bold;'
None found |