How to Embed Snippets in Your Blog
You can embed a code snippet into the pages and posts of most blogging platforms, including WordPress, Blogger and TypePad. The code won't be called into action, but it will show the exact code on the screen. Embedding snippets in your blog is helpful in highlighting a piece of code that you discovered and want to share with your tech-savvy readers.
Instructions
-
-
1
Go to your blog editor, sign into your account and create a new post.
-
2
Type or copy-and-paste the code snippet into the text area of the post editor.
-
-
3
Highlight the snippet and click the "Blockquote" icon. If you do not see an icon for this function, you may be viewing in HTML mode. Type "<blockquote>" before the beginning of your code snippet, then type "</blockquote>" at the end of the snippet.
-
4
Preview the post to make sure the code snippet is showing correctly. Publish the post to your blog when you are satisfied. The reader will see a snippet of code left-indented in the blog post.
-
1