Emil’s Blog

Programming Windows, .Net, EPiServer and whatnot…

[Powered by WordPress.]

July 28, 2005

Help, my code examples are messed with!

by @ 18:49. Filed under WordPress tips

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";

Leave a Reply

[powered by WordPress.]

jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.

Internal links:

Categories:

Search blog:

Archives:

September 2010
M T W T F S S
« Jun    
 12345
6789101112
13141516171819
20212223242526
27282930  


View Emil Åström's profile on LinkedIn

General links:

I read:

Visitors

Recent Comments

Spam caught

Other:

Clicky Web Analytics

42 queries. 0.669 seconds