home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / paragraphformat.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  878 b   |  41 lines

  1. <!--- This shows ParagraphFormat --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>
  7. ParagraphFormat Example
  8. </TITLE>
  9. </HEAD>
  10.  
  11. <BODY bgcolor=silver>
  12.  
  13. <H3>ParagraphFormat Example</H3>
  14.  
  15. <P>Enter some text into this textarea, and
  16. see it returned as HTML.
  17.  
  18. <CFIF IsDefined("form.myTextArea")>
  19.  
  20. <P>Your text area, formatted
  21. <P><CFOUTPUT>#ParagraphFormat("#form.myTextArea#")#</CFOUTPUT>
  22.  
  23. </CFIF>
  24.  
  25. <!--- use #Chr(10)##Chr(13)# to simulate a line feed/carriage
  26. return combination; i.e, a return --->
  27. <FORM ACTION="paragraphformat.cfm" METHOD="POST">
  28. <TEXTAREA NAME="MyTextArea" COLS="35" ROWS=8>
  29. This is sample text and you see how it scrolls<CFOUTPUT>#Chr(10)##Chr(13)#</CFOUTPUT>
  30. From one line <CFOUTPUT>#Chr(10)##Chr(13)##Chr(10)##Chr(13)#</CFOUTPUT> to the next
  31. </TEXTAREA>
  32.  
  33. <INPUT TYPE="Submit" NAME="show me the html version">
  34. </FORM>
  35.  
  36.  
  37.  
  38. </BODY>
  39.  
  40. </HTML>       
  41.