Title: Code boxes
Last modified: August 18, 2016

---

# Code boxes

 *  Resolved [novacaine](https://wordpress.org/support/users/novacaine/)
 * (@novacaine)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/code-boxes/)
 * Hey all,
 * I’m looking for a starting point/web links on how to go about creating a code
   box for my posts. i.e a textbox with scrollbars that will preserve the format
   of the contained text. I would like to use the ` tag if possible.
 * I’m kinda new to the whole php programming, and my first guess is that i’ll need
   to code this in php. Just wondering if anyone could point me in the right direction.
 * Thanks in advance.
 * NM, Found iG:Syntax Hiliter. and couldn’t delete this post

Viewing 1 replies (of 1 total)

 *  [altacivil](https://wordpress.org/support/users/altacivil/)
 * (@altacivil)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/code-boxes/#post-276110)
 * I may be talking out of my a$$ here, but could you not just do it all in CSS?
   If you set the height of your <codebox> (an assigned class/id of a div) and then
   say overflow: show or something… would that not work?
 * If it doesnt i know that a lot of forums have this in them (this feature i mean)
   I am sure there is a way to do it without php… you could always set up a form(
   coded in html mind you) and do it that way… or are you wanting to have it more
   dynamic?

Viewing 1 replies (of 1 total)

The topic ‘Code boxes’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [altacivil](https://wordpress.org/support/users/altacivil/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/code-boxes/#post-276110)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
