Community Documentation

Drupal 7 - Displaying pre-formatted text & code on your site - HowTo

Last updated March 28, 2012. Created by Christopher Jam... on March 27, 2012.
Log in to edit this page.

Display text characters including code, blank spaces, and line-breaks in a pre-formatted fashion on your Drupal 7 site


[Please insert answer here. (*) CSS and HTML code editing instructions welcome. JavaScript and/or PHP code instructions are welcomed if my quest is Not possible strictly using HTML/CSS]

This page is intended as a consolidation of this issue as being discussed is at the drupal.org forum page http://drupal.org/node/1505188

 

 


Solutions considered

- You can Not simply place your pre-formatted text within thee element-tag set <pre></pre> nor <code></code> and edit CSS. [..or at least, I have not found any possible way to get that to work.]

- You could create pages on your site, and choose the text-format "Plain text", but then you will not be able to use any HTML in your content body.

Addition solutions considered - drupal.org forum page http://drupal.org/node/1505188

 

 

### http://drupal.org/node/1505310 « This page's URL.

Page status

About this page

Drupal version
Drupal 7.x
Keywords
cod, display, Drupal 7, HowTo, pre-formatted, text

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.