[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/parser/ -> code.php (summary)

(no description)

File Size: 71 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Doku_Renderer_code:: (4 methods):
  code()
  file()
  document_end()
  getFormat()


Class: Doku_Renderer_code  - X-Ref

A simple renderer that allows downloading of code and file snippets

code($text, $language = null, $filename = '')   X-Ref
Send the wanted code block to the browser

When the correct block was found it exits the script.

param: string $text
param: string $language
param: string $filename

file($text, $language = null, $filename = '')   X-Ref
Wraps around code()

param: string $text
param: string $language
param: string $filename

document_end()   X-Ref
This should never be reached, if it is send a 404


getFormat()   X-Ref
Return the format of the renderer

returns: string 'code'