diff options
| author | czaks <marcin@6irc.net> | 2015-04-12 00:32:58 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-12 01:14:35 +0200 |
| commit | 197d5f236f0d35126f90c767c4580a71600298b4 (patch) | |
| tree | 1266b09e607a2d50c9f3849f2be8411a3b29cd44 /inc/config.php | |
| parent | 4131a6e5636df3afac7b0894994074cda6fa3b6b (diff) | |
[code] tag support
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/inc/config.php b/inc/config.php index 3a63054c..b7c60125 100644 --- a/inc/config.php +++ b/inc/config.php @@ -624,13 +624,10 @@ $config['markup'][] = array("/\*\*(.+?)\*\*/", "<span class=\"spoiler\">\$1</span>"); $config['markup'][] = array("/^[ |\t]*==(.+?)==[ |\t]*$/m", "<span class=\"heading\">\$1</span>"); - // Highlight PHP code wrapped in <code> tags (PHP 5.3+) - // $config['markup'][] = array( - // '/^<code>(.+)<\/code>/ms', - // function($matches) { - // return highlight_string(html_entity_decode($matches[1]), true); - // } - // ); + // Code markup. This should be set to a regular expression, using tags you want to use. Examples: + // "/\[code\](.*?)[\/code]/is" + // "/```([a-z0-9-]{0,20})\n(.*?)\n?```/s" + $config['markup_code'] = false; // Repair markup with HTML Tidy. This may be slower, but it solves nesting mistakes. Tinyboad, at the // time of writing this, can not prevent out-of-order markup tags (eg. "**''test**'') without help from |
