Code formatting – help?

In my prior post, I had to use the {code language=”java”} {/code} (yes, these should be braces) to get it to display somewhat OK.

When I pasted my formatted code block in, it would post a ton of breaking spaces, and ampersands back from the bad old HTML days. I ended up removing the formatting to get it into a readable state.

Is there any better way to put in code segments in?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s