Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 556 → Rev 954

/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/tableaux.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/hightlighter.class.inc
1,6 → 1,6
<?php
/*
* $Id: hightlighter.class.inc,v 1.2 2005-10-20 10:28:25 ddelon Exp $
* $Id: hightlighter.class.inc,v 1.3 2006-09-21 14:18:06 florian Exp $
*
* Souligneur générique pour colorier la syntaxe de langage de programmation
*
/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/coloration_delphi.php
1,6 → 1,6
<?php
/*
* $Id: coloration_delphi.php,v 1.2 2005-10-20 10:28:25 ddelon Exp $
* $Id: coloration_delphi.php,v 1.3 2006-09-21 14:18:06 florian Exp $
*
* Souligneur syntaxique Delphi
*
/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/wakka.php
34,7 → 34,6
 
if (!function_exists("wakka2callback"))
{
include("formatters/tableaux.php"); //EF => tableaux
function wakka2callback($things)
{
$thing = $things[1];
54,11 → 53,6
return "&lt;";
else if ($thing == ">")
return "&gt;";
//EF=> tableaux
else if (preg_match("/^\[\|(.*)\|\]/s", $thing))
{
return parsetable($thing);
} //end tableaux
// bold
else if ($thing == "**")
{
188,7 → 182,7
// forced links
// \S : any character that is not a whitespace character
// \s : any whitespace character
else if (preg_match("/^\[\[(\S*)\s+(.+)?\]\]$/", $thing, $matches))
else if (preg_match("/^\[\[(\S*)(\s+(.+))?\]\]$/", $thing, $matches))
{
list (, $url, $text) = $matches;
if ($url)
320,7 → 314,6
$text = chop($text)."\n";
$text = preg_replace_callback(
"/(\%\%.*?\%\%|".
"^\[\|.*?\|\]|". //EF => tableaux
"\"\".*?\"\"|".
"\[\[.*?\]\]|".
"\b[a-z]+:\/\/\S+|".