Метод | Описание | |
---|---|---|
getEnableCopyCode ( ) : boolean | ||
getLanguage ( ) : string | ||
getLineNumberStyle ( ) : |
||
getShowLineNumbers ( ) : boolean | ||
getTabSize ( ) : integer | ||
onPreRender ( $writer ) | Registers css style for the highlighted result. | |
processText ( $text ) : string | Processes a text string. | |
render ( $writer ) | ||
setEnableCopyCode ( $value ) | ||
setLanguage ( $value ) | ||
setLineNumberStyle ( $value ) | ||
setShowLineNumbers ( $value ) | ||
setTabSize ( $value ) |
Метод | Описание | |
---|---|---|
getHeaderTemplate ( ) : string | ||
getTagName ( ) : string | ||
registerStyleSheet ( ) | Registers the stylesheet for presentation. |
public getEnableCopyCode ( ) : boolean | ||
Результат | boolean | true will show "Copy Code" link. Defaults to false. |
protected getHeaderTemplate ( ) : string | ||
Результат | string | header template with "Copy code" link. |
public getLanguage ( ) : string | ||
Результат | string | language whose syntax is to be used for highlighting. Defaults to 'php'. |
public getLineNumberStyle ( ) : |
||
Результат | style of row number, Table by default |
public getShowLineNumbers ( ) : boolean | ||
Результат | boolean | whether to show line numbers in the highlighted result. |
public getTabSize ( ) : integer | ||
Результат | integer | tab size. Defaults to 4. |
protected getTagName ( ) : string | ||
Результат | string | tag name of the panel |
public onPreRender ( $writer ) |
public processText ( $text ) : string | ||
Результат | string | the processed text result |
protected registerStyleSheet ( ) |