Title: show php code as formatted
Last modified: August 18, 2016

---

# show php code as formatted

 *  [dodo](https://wordpress.org/support/users/dodo/)
 * (@dodo)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/show-php-code-as-formatted/)
 * someone help me find this hack. i’ve seen it used many places.. it has to be 
   there but i can’t seem to find it. how does it format php code correctly like
   [http://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/](http://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/)
   ??

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

 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/show-php-code-as-formatted/#post-83676)
 * [http://wordlog.com/index.php?s=syntax](http://wordlog.com/index.php?s=syntax)
 *  Thread Starter [dodo](https://wordpress.org/support/users/dodo/)
 * (@dodo)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/show-php-code-as-formatted/#post-83679)
 * much appreciated.
 *  Thread Starter [dodo](https://wordpress.org/support/users/dodo/)
 * (@dodo)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/show-php-code-as-formatted/#post-83681)
 * actually i want something like this
    [http://scott.yang.id.au/2004/05/syntax-hilight-enscript/](http://scott.yang.id.au/2004/05/syntax-hilight-enscript/)
   hrm but is there a version that validates xhtml? i do only have php 4 but still
   i want it to use span…..

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

The topic ‘show php code as formatted’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [dodo](https://wordpress.org/support/users/dodo/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/show-php-code-as-formatted/#post-83681)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
