Title: [Plugin: Plum Code Box] Fixing the formatting
Last modified: August 20, 2016

---

# [Plugin: Plum Code Box] Fixing the formatting

 *  [Korolov](https://wordpress.org/support/users/korolov/)
 * (@korolov)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-plum-code-box-fixing-the-formatting/)
 * When I installed the plugin, the code would creep off the side of the screen,
   so I made it wrap and put a nice gray background around it and indented it (same
   as on WordPress.org).
 * Here’s the style:
 *     ```
       pre {
         white-space: pre-wrap;       /* css-3 */
         white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
         white-space: -pre-wrap;      /* Opera 4-6 */
         white-space: -o-pre-wrap;    /* Opera 7 */
         word-wrap: break-word;       /* Internet Explorer 5.5+ */
         border: 1px solid #dadada; background-color: #F0F0F0; padding:11px 11px 11px 11px;
       }
       ```
   
 * [http://wordpress.org/extend/plugins/plum-code-box/](http://wordpress.org/extend/plugins/plum-code-box/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Korolov](https://wordpress.org/support/users/korolov/)
 * (@korolov)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-plum-code-box-fixing-the-formatting/#post-2191224)
 * But I like the horizontal scroll box approach even better…
 * Here’s the style:
 *     ```
       pre {
            overflow-x:scroll;
            overflow-y:hidden;
            border: 1px solid #dadada; background-color: #F0F0F0; padding:11px 11px 11px 11px;
           }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Plum Code Box] Fixing the formatting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/plum-code-box.svg)
 * [Plum Code Box](https://wordpress.org/plugins/plum-code-box/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plum-code-box/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plum-code-box/)
 * [Active Topics](https://wordpress.org/support/plugin/plum-code-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plum-code-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plum-code-box/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Korolov](https://wordpress.org/support/users/korolov/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-plum-code-box-fixing-the-formatting/#post-2191224)
 * Status: not resolved