see by writting some code here we select that code & press ctrl + K and that code now prints in something different format.
printf("this is code");
see now i copy uper sentenc开发者_JAVA技巧es code & paste it below in ctrl+ k mode
printf("this is code");
okey so now i want to know how can i get same effect in my wordpress-blog's post?
any plugin or any technique or any html tag ?
It looks like you are looking for a WP plugin which can handle source code syntax highlighting. Here are some examples which may work for you:
http://wordpress.org/extend/plugins/wp-syntax/screenshots/
http://wordpress.org/extend/plugins/google-syntax-highlighter/screenshots/
You'll want a code highlighter. For WordPress, Geshi-backed highlighters are pretty common. http://wordpress.org/extend/plugins/tags/geshi
You'll be looking for the <pre> tag.
精彩评论