Changeset 95058 in spip-zone
- Timestamp:
- Feb 9, 2016, 8:58:46 PM (5 years ago)
- Location:
- _plugins_/coloration_code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/coloration_code/trunk/geshi/geshi.php
r93267 r95058 3317 3317 } 3318 3318 3319 /** 3320 * handles regular expressions highlighting-definitions with callback functions 3319 /** 3320 * [Surcharge de Geshi] 3321 * 3322 **/ 3323 function handle_singleline_regexps($stuff_to_parse, $regexp, $key) { 3324 $stuff_to_parse = preg_replace( 3325 '/' . $regexp[GESHI_SEARCH] . '/' . $regexp[GESHI_MODIFIERS], 3326 $regexp[GESHI_BEFORE] . '<|!REG3XP'. $key .'!>' . $regexp[GESHI_REPLACE] . '|>' . $regexp[GESHI_AFTER], 3327 $stuff_to_parse); 3328 return $stuff_to_parse; 3329 } 3330 3331 /** 3332 * handles regular expressions highlighting-definitions with callback functions 3321 3333 * 3322 3334 * @note this is a callback, don't use it directly … … 3463 3475 $this->_hmr_after = ''; 3464 3476 } else { 3465 $stuff_to_parse = preg_replace( 3466 '/' . $regexp[GESHI_SEARCH] . '/' . $regexp[GESHI_MODIFIERS], 3467 $regexp[GESHI_BEFORE] . '<|!REG3XP'. $key .'!>' . $regexp[GESHI_REPLACE] . '|>' . $regexp[GESHI_AFTER], 3468 $stuff_to_parse); 3477 // [surcharge de GESHI] 3478 // pour passer dans une methode 3479 // (qui permet donc une surcharge de juste la methode) 3480 /* 3481 $stuff_to_parse = preg_replace( 3482 '/' . $regexp[GESHI_SEARCH] . '/' . $regexp[GESHI_MODIFIERS], 3483 $regexp[GESHI_BEFORE] . '<|!REG3XP'. $key .'!>' . $regexp[GESHI_REPLACE] . '|>' . $regexp[GESHI_AFTER], 3484 $stuff_to_parse); 3485 */ 3486 $stuff_to_parse = $this->handle_singleline_regexps($stuff_to_parse, $regexp, $key); 3469 3487 } 3470 3488 } else { -
_plugins_/coloration_code/trunk/paquet.xml
r94456 r95058 2 2 prefix="coloration_code" 3 3 categorie="edition" 4 version="0.9. 4"4 version="0.9.5" 5 5 etat="stable" 6 6 compatibilite="[2.0.0;3.1.*]" -
_plugins_/coloration_code/trunk/plugin.xml
r94456 r95058 16 16 <icon>coloration-32.png</icon> 17 17 <auteur>Pierre Andrews (Mortimer) - ARNO*</auteur> 18 <version>0.9. 4</version>18 <version>0.9.5</version> 19 19 <etat>stable</etat> 20 20 <description>
Note: See TracChangeset
for help on using the changeset viewer.