Post code snippets in WordPress
Here is the simplest way to easily add source code to WordPress with the built-in TinyMCE editor. There are a lot of posts of people looking for a simple solution like this. And Many people wrote plugins, that don't really work. MoxieCode gets badmouthed for a poorly written editor. Well that's all pretty silly. All we needed to do is read some of TinyMCE's documentation and figure a clever CSS fix.
At the end, you'll be able to visually embed code just like:
@ require('../../../wp-config.php');
function wp_translate_tinymce_lang($text) {
if ( ! function_exists('__') ) {
return $text;
} else {
$search1 = "/^tinyMCELang[(['\"])(.*)1]( ?= ?)(['\"])(.*)4/Uem";
$replace1 = "'tinyMCELang[121]3'.stripslashes('4').__('5').stripslashes('4')";
$search2 = "/ : (['\"])(.*)1/Uem";
$replace2 = "' : '.stripslashes('1').__('2').stripslashes('1')";
$search = array($search1, $search2);
$replace = array($replace1, $replace2);
$text = preg_replace($search, $replace, $text);
return $text;
}
}No plugins are needed. Minimal code changes are neccesary. And it works.

I tried many different methods plugins, also css method.All failed This one seems to be working fine a big Thumbs UP. Thanks
In the end, as you can tell, I gave up on WordPress entirely.
Better use some good plugins like WP-Syntax (http://wordpress.org/extend/plugins/wp-syntax/) that make use of GeSHi (http://qbnz.com/highlighter/). No modifications on the core files needed = happy admins everywhere :)
how to make it normal again as usual??
thx before.