CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | Private Attributes | List of all members
SyntaxColoringEngine_javascript Class Reference

Public Member Functions

 execute ($text, $params)
 

Private Attributes

 $styles
 Define styles for syntax colouring. More...
 
 $keywords
 Define keywords for syntax colouring. More...
 
 $ikeywords
 Define keywords that need indentation for syntax colouring. More...
 

Detailed Description

SyntaxColoringEngine_javascript class.

Member Function Documentation

SyntaxColoringEngine_javascript::execute (   $text,
  $params 
)

Execute colourisation.

Parameters
string$text
array$params
Returns
string

Member Data Documentation

SyntaxColoringEngine_javascript::$ikeywords
private
Initial value:
= array(
'if',
'for',
'foreach',
'while',
'try',
'catch'
)

Define keywords that need indentation for syntax colouring.

var array $ikeywords

SyntaxColoringEngine_javascript::$keywords
private
Initial value:
= array(
'if',
'else',
'function',
'for',
'new',
'while',
'eval',
'prototype',
'var',
'return',
'this',
'foreach',
'in',
'case',
'switch',
'continue',
'break',
'default',
'try',
'catch',
'alert',
)

Define keywords for syntax colouring.

var array $keywords

SyntaxColoringEngine_javascript::$styles
private
Initial value:
= array(
'comments' => 'color:#CC3333',
'keywords' => 'color:#0000FF;font-weight:bold;',
'string' => 'color:#888888',
'indent' => 'padding-left:8px',
)

Define styles for syntax colouring.

var array $styles


The documentation for this class was generated from the following file: