Load a CFM file as an HTNL and not a text file

D

Doron Farber

Hi All,

I need to load in Front page for office 2003 a file with an extension of
CFM. But FP loads it as a text file. I really wants to load it as HTML file
.. So I can have the look and feel for that file. Where can I define that in
FP to load that file as an HTML as well.

Thanks

Doron
 
S

Stefan B Rusynko

Use Tools Options Configure Editors and set FP as the editor for .cfm files




| Hi All,
|
| I need to load in Front page for office 2003 a file with an extension of
| CFM. But FP loads it as a text file. I really wants to load it as HTML file
| . So I can have the look and feel for that file. Where can I define that in
| FP to load that file as an HTML as well.
|
| Thanks
|
| Doron
|
|
 
D

Doron Farber

But still it brings as a text file, and I iwant to see that as it runs in
the IE. How can I do that? In previous versions it did not come as a text
file only.

Thanks
 
M

Murray

CF is a server-scripting 'language'. It is not HTML. It contains no
presentation capability, other than the capability to write HTML into the
page, or to write content onto the page.

As such, it's quite possible that one could open a cfm file, and see nothing
at all on the page, since the page is a "process only" page, i.e., the
scripting on the page only process data and displays nothing.

When you open the page in FP, you are saying that you do not get code
coloring as you would expect on an HTML page?
 
D

Doron Farber

99 % is an htm code and several lines are CF.
if I rename its extension to HTM then there is no problem to open it as an
HTM in design mode. I used to open the CF in design mode all the time in FP
without renaming its extension.

Right now it opens it as a text in the FP without any coloring as I would
expect as an HTM file. I would rather open the CF file in design mode and
then click on the code tab if need be.
 
R

Ronx

In FP2003
Tools->Options - Configure Editors tab
Select cfm from the extensions column
Add editor
Select FrontPage (Open as HTML)
Set as default

If the page cannot be opened in Design View, then the page coding is
such that FP will have to modify it to keep some resemblance of
validity - the most likely cause is some HTML tags are opened in HTML
and closed in cfm code, or vice versa. FP will guard against
modifying this by not allowing design view.
 
P

p c

Change its extension to HTML then open it in the browser as a web page
or open in FP for editing or viweing.
...PC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top