[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TMarkdown.php (sommaire)

TMarkdown class file

Author: Wei Zhuo
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TMarkdown.php 1397 2006-09-07 07:55:53Z wei $
Poids: 81 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TMarkdown:: (2 méthodes):
  processText()
  highlightCode()


Classe: TMarkdown  - X-Ref

TMarkdown class

TMarkdown is a control that produces HTML from code with markdown syntax.

Markdown is a text-to-HTML conversion tool for web writers. Markdown allows
you to write using an easy-to-read, easy-to-write plain text format, then
convert it to structurally valid XHTML (or HTML).
Further documentation regarding Markdown can be found at
http://daringfireball.net/projects/markdown/

To use TMarkdown, simply enclose the content to be rendered within
the body of TMarkdown in a template.

See http://www.pradosoft.com/demos/quickstart/?page=Markdown for
details on the Markdown syntax usage.

TMarkdown also performs syntax highlighting for code blocks whose language
is recognized by {@link TTextHighlighter}.
The language of a code block must be specified in the first line of the block
and enclosed within a pair of square brackets (e.g. [php]).

processText($text)   X-Ref
Processes a text string.
This method is required by the parent class.

param: string text string to be processed
return: string the processed text result

highlightCode($matches)   X-Ref
Highlights source code using TTextHighlighter

param: array matches of code blocks
return: string highlighted code.



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7