Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to display this file:

http://data.barrycarter.info/aprswx.txt

on wordpress.barrycarter.info, but all my attempts fail because of preprocessing:

http://wordpress.barrycarter.info/index.php/test-kml-fail

(use "view source" to see what parts of the file WP "hides" from view).

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Use a plugin like syntax highlighter evolved. http://wordpress.org/extend/plugins/syntaxhighlighter/

Or wrap it in <pre> or <code> tags.

share|improve this answer
    
<pre><code> didn't work, but <pre><code><textarea> did. I was tempted to use iframe, but sense this is cleaner. –  barrycarter May 21 '11 at 11:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.