开发者

how can i get the same effect comes by "ctrl + k" in stackoverflow question, in my html code?

开发者 https://www.devze.com 2023-04-07 23:11 出处:网络
see by writting some code here we select that code & press ctrl + K and that code now prints in something different format.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消