Extension:BacktickCode

The BacktickCode extension wraps  tags around wikitext which is placed.

This provides a handy wiki-editing shortcut for wikis that expect a lot of inlined  snippets in its pages, and functions similarly to the standard MediaWiki     bold formatting shortcut.

Backtick characters within  blocks will not be altered by this extension. Backticks outside of  blocks can also be output to the page by escaping them as.

Code

 * There is a newer code which is compatable with Mediawiki 1.27 at the Discussion page Extension_talk:BacktickCode

' and '\`' by '`'. $text = preg_replace('/([^\\\\]|^)`([^`]*)`/', '$1 ', $text); $text = preg_replace('/\\\\\`/', '`', $text);
 * BacktickCode.php (PHP 5.3+)

return true; }

' and '\`' by '`'. $text = preg_replace('/([^\\\\]|^)`([^`]*)`/', '$1 ', $text); $text = preg_replace('/\\\\\`/', '`', $text);
 * BacktickCode.php (PHP 5.2+)

return true; }

Credits
This extension is derived from Extension:DollarSign.