TextAreaFormat Example

This pair of pages shows you the effect of (and problems with) trying to display textarea field input (or data that comes from a database) where spaces, line breaks, and tabs must be preserved on display. When you submit this page, you will see the data below rendered:
  • With no special processing (which will look bad if the textarea field has blanks lines, spaces, and/or tabs
  • With basic formatting made available with the HTML <pre>tag
  • With basic formatting made available with the CF paragraphformat function
  • With perfectly rendered formatting made available by this TEXTAREAFORMAT function
  • With perfectly rendered formatting made available by this CF_TEXTAREAFORMAT tag
You can simply leave the sample data below or enter any of your own choosing, to see how it would be rendered by code using each of the solutions above.

Example. Enter some text here:

Press the "reformat" button to see how the text would be rendered in a CFOUTPUT both with and without reformatting using the solutions above.

Return to the Main CF_TEXTAREA Page.

<Download>
<Help (Syntax/Usage)>

If you have any questions, please send them to [email protected].

Further details available for:

| Home | ColdFusion | Articles | Presentations
| User Groups | Other Resources | Press Releases | Company

© 1998-2018, Charles Arehart, SysteManage
Our Practice Makes You Perfect