How do I add syntax highlighting to a WordPress blog hosted on WordPress.com?
问题 I'd like to have a good syntax highlighter for my WordPress blog. What options do I have available? I often see one which has well-colored syntax highlighting and options to copy to the clipboard. Does anyone have an idea what tool this is? 回答1: On wordpress.com, you can't install plugins, so you have to use Wordpress' built-in widget. Do it like: [code language='python'] [/code] Note that those tags go inside your visual editor, not the HTML editor. You can find more information here. 回答2: