How do I add syntax highlighting to a WordPress blog hosted on WordPress.com?

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)