One supremely annoying problem I had the first days of using WordPress was that it kept on “beautifying” my code samples. For example replacing normal quotes with curly ones. For normal text that’s okay I guess, but for code it isn’t!
For example:
string s = “this is a string”;
Luckily however, this can be fixed by using using a plugin called Preserve Code Formatting by Scott Reilly. Very useful!
Just install it and after that WordPress will keep it’s dirty hands off content within <code>-tags.
The code sample above now reads:
string s = "this is a string";
[powered by WordPress.]
jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
42 queries. 0.669 seconds