Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TEXTAREA Runs Code

Status
Not open for further replies.

neofactor

Technical User
Joined
Jul 30, 2000
Messages
194
Location
US
Hi...

I am running in to a bit of trouble...
I am using CFFILE to get the content of a CFM file and place it inside a TEXTAREA box foe viewing.

I put it insode a TEXTAREA because I wanted to prevent the code to be excuted. just displayed...

Works great except if there is a clase TEXTAREA tag. I tried to replace TEXTAREA with TEXT***AREA but it still breaks out and processes the remaining part of the code on screen.

I even tried <CFSET Message=&quot;#REReplace(message,&quot;\&(##?[A-Za-z0-9]*);&quot;, &quot;&\1;&quot;, &quot;ALL&quot;)#&quot;>

But that does not do what I want either.
Is there anyone out their that know=s how to do this....

What tag does Tek-Tips use to convert their message board and show the output in color for specific tags...

Thank you fro any help.

-D
-- David McIntosh
 
OK--- I got it working with the following code:

<CFSET NewOutput=Replace(message, &quot;<&quot;, &quot;<&quot;, &quot;ALL&quot;)>
<CFSET NewOutput=Replace(NewOutput, &quot;>&quot;, &quot;>&quot;, &quot;ALL&quot;)>
<cfset NewOutput = replace(NewOutput,chr(13)&chr(10)&chr(13)&chr(10),&quot;<p>&quot;,&quot;all&quot;)>
<cfset NewOutput = replace(NewOutput,chr(13)&chr(10),&quot;<br>&quot;,&quot;all&quot;)>
<cfset NewOutput = replace(NewOutput,chr(32)&chr(32)&chr(32),&quot;   &quot;,&quot;all&quot;)>
<cfset NewOutput = replace(NewOutput,chr(9),&quot;        &quot;,&quot;all&quot;)>

<form action=&quot;&quot;><textarea cols=&quot;100&quot; rows=&quot;15&quot; name=&quot;1&quot;>
<cfoutput>#NewOutput#</cfoutput>
</textarea></form>

But isnt there a tag out their that will color the CF tags?
I saw it once... can anyone shoot me the link?

Thanks
-D -- David McIntosh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top