FP2003 Altering Code

P

pageoneresults

Good day. I'm a long time FP user (since Vermeer) and just made the switch to
FP2003 from FP2002 within the past week.

One of the issues I am currently having has to do with FP include
statements. It appears that the code formatting for comments in the Page
Options does not apply to FPs include statements which use a "comment" style
tag to execute.

<!--webbot bot="include" u-include="file.asp" tag="body" -->

Notice that there is no space between the <!--webbot... (2 hyphens and
webbot). FPs code formatting is looking for comments that are properly formed
<!-- webbot. Unfortunately if I try adding the space between the hyphens and
webbot it breaks the include (it doesn't work).

Since we are very strict with our code formatting rules, having include
statements running back to back on one line is not going to work...

<!--webbot bot="include" u-include="file.asp" tag="body" --><!--webbot
bot="include" u-include="file.asp" tag="body" --><!--webbot bot="include"
u-include="file.asp" tag="body" -->

How can I get them back to...

<!--webbot bot="include" u-include="file.asp" tag="body" -->
<!--webbot bot="include" u-include="file.asp" tag="body" -->
<!--webbot bot="include" u-include="file.asp" tag="body" -->

I've tried just about everything I know of and FrontPage is ignoring my
changes, it just reformats the includes to go back onto one line if they
appear back to back. It is also taking anything after the include and
bringing that up to the same line as the include.

I'm assuming this is a bug in FP2003 as FP2002 treated the code formatting
correctly. Any help out there?
 
S

Stefan B Rusynko

Not a bug, just the way the FP includes work
- live w/ it or don't use them (use SSI instead)

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Good day. I'm a long time FP user (since Vermeer) and just made the switch to
| FP2003 from FP2002 within the past week.
|
| One of the issues I am currently having has to do with FP include
| statements. It appears that the code formatting for comments in the Page
| Options does not apply to FPs include statements which use a "comment" style
| tag to execute.
|
| <!--webbot bot="include" u-include="file.asp" tag="body" -->
|
| Notice that there is no space between the <!--webbot... (2 hyphens and
| webbot). FPs code formatting is looking for comments that are properly formed
| <!-- webbot. Unfortunately if I try adding the space between the hyphens and
| webbot it breaks the include (it doesn't work).
|
| Since we are very strict with our code formatting rules, having include
| statements running back to back on one line is not going to work...
|
| <!--webbot bot="include" u-include="file.asp" tag="body" --><!--webbot
| bot="include" u-include="file.asp" tag="body" --><!--webbot bot="include"
| u-include="file.asp" tag="body" -->
|
| How can I get them back to...
|
| <!--webbot bot="include" u-include="file.asp" tag="body" -->
| <!--webbot bot="include" u-include="file.asp" tag="body" -->
| <!--webbot bot="include" u-include="file.asp" tag="body" -->
|
| I've tried just about everything I know of and FrontPage is ignoring my
| changes, it just reformats the includes to go back onto one line if they
| appear back to back. It is also taking anything after the include and
| bringing that up to the same line as the include.
|
| I'm assuming this is a bug in FP2003 as FP2002 treated the code formatting
| correctly. Any help out there?
|
|
 
R

Ronx

It's a bug in the way FP2003 code formatting treats any comments (I
find no difference wether a space is present or not). A real pain if
you have a Perl script that looks for particular comments at the start
of a new line....
 
P

pageoneresults

Not exactly the best answer but it is an option. Actually, it is not the way
FP Includes work. Prior to the upgrade to FP2003, previous versions worked
just fine with code formatting and comments including the FP Includes. It
appears now that FP2003 doesn't recognize that its own Includes are wrapped
in a malformed comments tag.
 
P

pageoneresults

I'm able to get the code formatting to work if I add that space between the
two hyphen delimeter and the first character of the include statement.
Without the space (FPs default way of coding includes), it doesn't work. So,
that tells me that the code formatting portion of FP2003 has a bug. If you
select Comments from the code formatting menu, it shows a line break before
and a line break after (this is for those of you who are familiar with the
advanced features of FPs Code Formatting menus). With the space, I get a line
break before and a line break after. Without the space (FPs default Include
formatting), the bug is present. Unfortunately the FP Includes do not work
when using a properly formed comment tag.

Improper...

<!--webbot...

Proper...

<!-- webbot...
 

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