Code Syntax Highlight in WordPress.com

When posting a code in WorkPress.com, you can use ‘code’ tag

syntaxhighlight.PNG

  1. change view as ‘HTML’
  2. enclose your code with ‘code’ tag as follows’
    syntaxhighlight3.PNG

you can check full list of supported language at https://en.support.wordpress.com/code/posting-source-code/

Happy Coding~:)

Advertisements

About rookiecj

Hi all. Today is the day.
This entry was posted in python, Uncategorized and tagged , , , . Bookmark the permalink.

2 Responses to Code Syntax Highlight in WordPress.com

  1. I tried this technique with Kotlin. Unfortunately, WordPress doesn’t support Kotlin source highlighting yet..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s