[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/bundled-libs/Text/Wiki/Parse/Default/ -> Code.php (sommaire)

(pas de description)

Poids: 81 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Text_Wiki_Parse_Code:: (1 méthode):
  process()


Classe: Text_Wiki_Parse_Code  - X-Ref

This class implements a Text_Wiki_Parse to find sections marked as code
examples.  Blocks are marked as the string <code> on a line by itself,
followed by the inline code example, and terminated with the string
</code> on a line by itself.  The code example is run through the
native PHP highlight_string() function to colorize it, then surrounded
with <pre>...</pre> tags when rendered as XHTML.

process(&$matches)   X-Ref
Generates a token entry for the matched text.  Token options are:

'text' => The full matched text, not including the <code></code> tags.

param: array &$matches The array of matches from parse().
return: A delimited token number to be used as a placeholder in



Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics