Title: Show a source code in a post
Last modified: August 18, 2016

---

# Show a source code in a post

 *  [silveiraneto](https://wordpress.org/support/users/silveiraneto/)
 * (@silveiraneto)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/show-a-source-code-in-a-post/)
 * I have trieded all plugins I found for show or show hightlighted source code 
   in a post. No one worked propelly.
    I have a huge necessity to write posts with
   source codes. I have many posts stuckeds because I can’t write source codes in
   my posts, mostly Python and C. I tried `<pre> and` tags but the when I post the
   code loses it’s identation. I tried some plugins that promised to show code but
   none worked. I beg you, what I have to do? There’s a easy way to do that? :(`

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/show-a-source-code-in-a-post/#post-531037)
 * First, plan on turning off the WYSIWYG editor if you’re going to use any of the
   code format plugins. (Users -> Your Profile, uncheck the Use VRE box).
 * Now, try them again. I use and like [iG:Syntax Hiliter](http://blog.igeek.info/wp-plugins/igsyntax-hiliter/),
   still works well with 2.1.1.
 *  Thread Starter [silveiraneto](https://wordpress.org/support/users/silveiraneto/)
 * (@silveiraneto)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/show-a-source-code-in-a-post/#post-531039)
 * I tried the iG:Syntax Hiliter, looks fine but with me was a mess. Just a image
   could describe. 😛 Thanks for the tip, I will try right now.
 *  Thread Starter [silveiraneto](https://wordpress.org/support/users/silveiraneto/)
 * (@silveiraneto)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/show-a-source-code-in-a-post/#post-531046)
 * I did this by whis way:
    1) Turned off the WYSIWYG editor, but no identation.
   2) I did the identation manually by putting spaces like this  
 * The post:
    [http://www.eupodiatamatando.com/2007/03/01/mostrando-as-horas-em-c/](http://www.eupodiatamatando.com/2007/03/01/mostrando-as-horas-em-c/)
 * A huge work, but works.
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/show-a-source-code-in-a-post/#post-531048)
 * I put code in my posts. I just use the HTML entity for certain characters. I 
   don’t do C or Python (my tutes are XHTML and CSS), but I replace things like `
   <` with `& lt;` and that usually takes care of it. I make notations that it’s
   code by placing it in a div with a border around it. It’s not much extra work
   at all.
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/show-a-source-code-in-a-post/#post-531057)
 * And I just copy/paste and toss ig:syntax hiliter tags. Indentation is preserved.
   Color coded. I even turned on the option line numbers. [Example of a post](http://www.solo-technology.com/blog/2006/01/08/the-obligatory-my-ajax-tutorial-post/)
   with several different code samples.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Show a source code in a post’ is closed to new replies.

## Tags

 * [python](https://wordpress.org/support/topic-tag/python/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Chris_K](https://wordpress.org/support/users/handysolo/)
 * Last activity: [19 years, 3 months ago](https://wordpress.org/support/topic/show-a-source-code-in-a-post/#post-531057)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
