|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
show CF code
Is there a way to get CF to show its own code without processing it? Sort of like a <pre> for ColdFusion.
Searched the Macromedia docs and couldn't find anything. Any suggestions appreciated. |
|
#2
|
|||
|
|||
|
You could read in the text of a cfm file using CFFILE and then do whatever you want to do with the text. But no, there is no way to call a .cfm page directly and just somehow tell it not to execute but instead to display the code. That would be a massive security hole.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
||||
|
||||
|
upload the .cfm file to your host
rename it with the .txt extension upload it again, and leave the .cfm extension |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > show CF code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|