Code Mirror 2. This project is an attempt to replicate offline code editing.
* Author: RingZer0
* Author URI: http://ringzer0devel.wordpress.com/
* Version: 2.0
* Requires at least: 2.6
* Tested up to: 3.1
* Stable tag: 2.0
**/
if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
define('AES_LIBS',plugins_url('/lib/',__FILE__));
class wp_cm_syntax {
public function __construct(){
add_action('admin_init',array(&$this,'admin_init'));
add_action('admin_head',array(&$this,'admin_head'));
add_action('admin_footer',array(&$this,'admin_footer'));
}
public function admin_footer(){
if (!$this->is_editor())
return;
$filetype = $this->get_file_ext();
?>
is_editor())
return;
$filetype = $this->get_file_ext();
?>