Title: Inserting code with tags.
Last modified: August 19, 2016

---

# Inserting code with tags.

 *  [spartacvs](https://wordpress.org/support/users/spartacvs/)
 * (@spartacvs)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/inserting-code-with-tags/)
 * Hello, im new and i just installed wordpress in my own server. Im trying to paste
   some code in one of my posts, and ive been searching and i saw the posibility
   of using the tags:
 * > [sourcecode language="php"][/sourcecode]
 * Is this correct, ive done it in Code view, but it doesnt work… it seems as the
   tags are not enable or something else ive been searching and i dont know what
   to do, the version of wordpress im using is 2.3.1

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

 *  [Hiranthi](https://wordpress.org/support/users/illutic/)
 * (@illutic)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/inserting-code-with-tags/#post-664642)
 * If you want to use PHP in your pages/posts, just download the [Exec-PHP](http://bluesome.net/post/2005/08/18/50/)
   plugin and activate it. With this plugin you’re able to use PHP-code (with the
   regular php-tags, not those you’ve mentioned).
 * Works like a charm for me!
 *  [theapparatus](https://wordpress.org/support/users/theapparatus/)
 * (@theapparatus)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/inserting-code-with-tags/#post-664647)
 * Actually I believe the poster is trying to display PHP code, not run it within
   their site.
 * Chances are you’re looking at the instructions over at wordpress.com. Do note
   that anything found over there is site specific and does not apply to the regular
   version of wordpress.
 * I would suggest trying this plugin as it should allow you to do what you;re looking
   for:
 * [http://wordpress.org/extend/plugins/syntaxhighlighter/](http://wordpress.org/extend/plugins/syntaxhighlighter/)

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

The topic ‘Inserting code with tags.’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [paste](https://wordpress.org/support/topic-tag/paste/)
 * [source-code](https://wordpress.org/support/topic-tag/source-code/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [theapparatus](https://wordpress.org/support/users/theapparatus/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/inserting-code-with-tags/#post-664647)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
