| 1 |
<?php |
<?php |
| 2 |
// $Id: geshifilter.admin.inc,v 1.20 2009/06/27 12:54:15 soxofaan Exp $ |
// $Id: geshifilter.admin.inc,v 1.21 2009/07/04 09:48:59 soxofaan Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 385 |
GESHIFILTER_BRACKETS_ANGLE => '<code>'. check_plain('<foo> ... </foo>') .'</code>', |
GESHIFILTER_BRACKETS_ANGLE => '<code>'. check_plain('<foo> ... </foo>') .'</code>', |
| 386 |
GESHIFILTER_BRACKETS_SQUARE => '<code>'. check_plain('[foo] ... [/foo]') .'</code>', |
GESHIFILTER_BRACKETS_SQUARE => '<code>'. check_plain('[foo] ... [/foo]') .'</code>', |
| 387 |
GESHIFILTER_BRACKETS_DOUBLESQUARE => '<code>'. check_plain('[[foo]] ... [[/foo]]') .'</code>', |
GESHIFILTER_BRACKETS_DOUBLESQUARE => '<code>'. check_plain('[[foo]] ... [[/foo]]') .'</code>', |
| 388 |
|
GESHIFILTER_BRACKETS_PHPBLOCK => t('PHP style source code blocks: !php and !percent', array( |
| 389 |
|
'!php' => '<code>'. check_plain('<?php ... ?>'). '</code>', |
| 390 |
|
'!percent' => '<code>'. check_plain('<% ... %>'). '</code>', |
| 391 |
|
)), |
| 392 |
), |
), |
| 393 |
'#default_value' => _geshifilter_tag_styles($format), |
'#default_value' => _geshifilter_tag_styles($format), |
| 394 |
'#description' => t('Select the container tag styles that should trigger GeSHi syntax highlighting.'), |
'#description' => t('Select the container tag styles that should trigger GeSHi syntax highlighting.'), |
| 395 |
); |
); |
|
// PHP specific delimiters. |
|
|
// @todo: merge this option into geshifilter_tag_styles$f. |
|
|
$form['geshifilter']["geshifilter_enable_php_delimiters$f"] = array( |
|
|
'#type' => 'checkbox', |
|
|
'#title' => t('Also apply syntax highlighting to <?php ... ?> style PHP source code blocks.'), |
|
|
'#description' => t('When enabled, PHP source code enclosed in <?php...?> or <%...%> will also be processed.'), |
|
|
'#default_value' => _geshifilter_php_delimeters($format), |
|
|
); |
|
| 396 |
return $form; |
return $form; |
| 397 |
} |
} |
| 398 |
|
|