Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • Text_Highlighter
  • Text_Highlighter_ABAP
  • Text_Highlighter_CPP
  • Text_Highlighter_CSS
  • Text_Highlighter_DIFF
  • Text_Highlighter_DTD
  • Text_Highlighter_Generator
  • Text_Highlighter_HTML
  • Text_Highlighter_JAVA
  • Text_Highlighter_JAVASCRIPT
  • Text_Highlighter_MYSQL
  • Text_Highlighter_PERL
  • Text_Highlighter_PHP
  • Text_Highlighter_PYTHON
  • Text_Highlighter_Renderer
  • Text_Highlighter_Renderer_Array
  • Text_Highlighter_Renderer_BB
  • Text_Highlighter_Renderer_Console
  • Text_Highlighter_Renderer_Html
  • Text_Highlighter_Renderer_HtmlTags
  • Text_Highlighter_Renderer_JSON
  • Text_Highlighter_Renderer_XML
  • Text_Highlighter_RUBY
  • Text_Highlighter_SH
  • Text_Highlighter_SQL
  • Text_Highlighter_VBSCRIPT
  • Text_Highlighter_XML
  • Overview
  • Package
  • Class
  • Tree

Class Text_Highlighter_Renderer_Console

Console renderer

Suitable for displaying text on color-capable terminals, directly or trough less -r

Elements of $options argument of constructor (each being optional):

  • 'numbers' - whether to add line numbers
  • 'tabsize' - Tab size
  • 'colors' - additional colors
Text_Highlighter_Renderer
Extended by Text_Highlighter_Renderer_Console
Package: Text\Highlighter
Category: Text
Copyright: 2004-2006 Andrey Demenev
License: PHP License
Author: Andrey Demenev <demenev@gmail.com>
Version: Release: 0.7.1
Link: http://pear.php.net/package/Text_Highlighter
Located at x2engine/framework/vendors/TextHighlighter/Text/Highlighter/Renderer/Console.php
Methods summary
public string
# preprocess( string $str )

Preprocesses code

Preprocesses code

Parameters

$str
string
$str Code to preprocess

Returns

string
Preprocessed code

Overrides

Text_Highlighter_Renderer::preprocess()
public
# reset( )

Resets renderer state

Resets renderer state

Overrides

Text_Highlighter_Renderer::reset()
public
# acceptToken( string $class, string $content )

Accepts next token

Accepts next token

Parameters

$class
string
$class Token class
$content
string
$content Token content

Overrides

Text_Highlighter_Renderer::acceptToken()
public
# finalize( )

Signals that no more tokens are available

Signals that no more tokens are available

Overrides

Text_Highlighter_Renderer::finalize()
public string
# getOutput( )

Get generated output

Get generated output

Returns

string
Highlighted code

Overrides

Text_Highlighter_Renderer::getOutput()
Methods inherited from Text_Highlighter_Renderer
__construct(), setCurrentLanguage()
Properties summary
public string $_lastClass
#

class of last outputted text chunk

class of last outputted text chunk

public boolean $_numbers false
#

Line numbering

Line numbering

public integer $_tabsize 4
#

Tab size

Tab size

public string $_output ''
#

Highlighted code

Highlighted code

public array $_colors array()
#
public array $_defColors array( 'default' => "\033[0m", 'inlinetags' => "\033[31m", 'brackets' => "\033[36m", 'quotes' => "\033[34m", 'inlinedoc' => "\033[34m", 'var' => "\033[1m", 'types' => "\033[32m", 'number' => "\033[32m", 'string' => "\033[31m", 'reserved' => "\033[35m", 'comment' => "\033[33m", 'mlcomment' => "\033[33m", )
#
Properties inherited from Text_Highlighter_Renderer
$_language, $_options
API documentation generated by ApiGen 2.8.0