How To Add Code Inside of a WordPress Article

1Sometimes, you may want to add a piece of software code (like C++, Java or even HTML) into your WordPress post. If you write your code directly in WordPress visual editor, it will look like an ordinary paragraph (just like the C code snippet written below).

But if you want your code to look like “code” (not like an ordinary paragraph) but not to behave like a real code, then writing your code directly on WordPress visual editor may not be the best solution for you.  So, what should you do ?
(more…)