How to post code snippets on wordpress.com

https://en.support.wordpress.com/code/posting-source-code/

I have code snippets that I like to add to my posts so people can copy them and use them in their developer process.

I initially used the code and pre tags but I found that wordpress.com has a better way to do this with a language class

i.e. which is much nicer.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.