homepage Welcome to WebmasterWorld Guest from 54.198.94.76
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
FrontPage 2003 Alters Code after Include Statements
Does not apply proper line breaks after include statements.
vinturella




msg:935677
 9:41 pm on Dec 8, 2005 (gmt 0)

Using the webbot include, frontpage seems to trample some following line breaks. This makes the code hard to follow. Any ideas?

 

dreamcatcher




msg:935678
 10:13 am on Dec 10, 2005 (gmt 0)

Maybe stop using Frontpage and use a text editor? Or a better HTML editor?

dc

Corey Bryant




msg:935679
 12:45 am on Dec 12, 2005 (gmt 0)

You are using Frontpage includes, right? And these line break - they are in the code? What version of Frontpage are using?

-Corey

Webwork




msg:935680
 2:13 am on Dec 12, 2005 (gmt 0)

"This makes the code hard to follow."

So, losing the line breaks "makes the code hard to follow"?

I wish I better understood the problem so I might help.

Why is "following the code" a problem, or, how is it a problem?

j_h_maccann




msg:935681
 2:30 am on Dec 12, 2005 (gmt 0)

It frequently works to put an extra <div> around the include:

...
<div>
<!--webbot bot="Include"
U-Include="../../database/foo.htm"
TAG="BODY" --></div>

<div>
<!--webbot bot="Include"
U-Include="../../database/bar.htm"
TAG="BODY" --></div>

</div><!--more-docs-->

will remain formatted just that way in the html editor of FP2003.

vinturella




msg:935682
 12:47 pm on Dec 12, 2005 (gmt 0)

I am using FP03. The hard to follow issue was that I am trying to make a modular program, consisting of includes, and all were stung out in one line.

I have since begun using PHP includes rather than webbots.

Thanks for your comments.

John

Webwork




msg:935683
 1:20 pm on Dec 12, 2005 (gmt 0)

make a modular program, consisting of includes, and all were stung out in one line.

Care to explain?

"Modular program" - "consisting of includes"?

"What" was "included"? Lines of hmtl? You can do that easily with MSFP includes.

"Stung out"? What is that? Was there a system generated error message?

pageoneresults




msg:935684
 8:20 pm on Dec 27, 2005 (gmt 0)

After converting to FP2003 this past week, I am noticing the same issues. You should be able to format your code in the Page Options of FP but it appears to be ignoring the formatting. It will take include lines like this...

<!--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" -->

And then puts them all on one line like this...

<!--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" -->

It's a real pain now as I view quite a bit of code at the browser level and like to see everything on its own line (no wrapping in tags, etc.).

[edited by: pageoneresults at 9:46 pm (utc) on Dec. 27, 2005]

pageoneresults




msg:935685
 8:38 pm on Dec 27, 2005 (gmt 0)

Okay, I just figured out the problem and it appears to be a bug in FP2003.

In Page Options, you can format the code for a comment using the Tags Menu and then entering your specifics in the Line Breaks area.

There is an option to format for comments which is what FP includes are wrapped in. But, here's the catch. Notice that FP does not have a space between the (<!--Start...) two dashes and first character. If I add a space there (<!-- Start...) then the code formatting works as it should. FP is not recognizing its own comment tags and therefore it cannot apply formatting to those lines. So, it will take the next line after an include and bring it up to the same line as the include code. It's a real pain right now!

<added> I just posted at the MS Community Newsgroups for FrontPage. Let's see if anyone else is working with this issue and/or has a fix.

Vishal




msg:935686
 11:41 pm on Dec 27, 2005 (gmt 0)

In Page Options, you can format the code for a comment using the Tags Menu and then entering your specifics in the Line Breaks area.

I tried changing these settings & have setup up line break of "2" for every option, but still it is making all comments + includes lines join up in 1 line :(

If I edit
<!--webbot bot="Include" U-Include="../include/header.html" TAG="BODY" -->
to
<!-- webbot bot="Include" U-Include="../include/header.html" TAG="BODY" -->

Formating works, however Include function "does not" work.

Can you tell me how you got it working.

Thanks for the help.

Vishal

pageoneresults




msg:935687
 12:00 am on Dec 28, 2005 (gmt 0)

Can you tell me how you got it working.

I haven't got it working yet. I've got topics in two different places asking for assistance. If I can't come up with a fix, I'm either reverting back to FP2002 or I'm going to make the transition to DW since I just bought Macromedia Studio 8.

FP is not recognizing its own comment as a comment tag since there is no space between those two hyphens and the first character of code. This was not the case with FP2002.

Corey Bryant




msg:935688
 1:35 pm on Dec 28, 2005 (gmt 0)

Is this working on both HTML pages and ASP pages?

-Corey

pageoneresults




msg:935689
 2:09 pm on Dec 28, 2005 (gmt 0)

Is this working on both HTML pages and ASP pages?

Yes, the issue exists on both HTML and ASP pages. I did get a response from the MS communities and they say it is a bug in FP2003. One responder said to deal with it or use SSI. :)

I guess I have a few different options right now...

  1. Revert back to FP2002
  2. Use SSI
  3. Use ASP Virtual Includes
  4. Try to get MS to fix it
  5. Switch to Dreamweaver

Hmmm, choices, choices, choices. Which one should I go with?

Corey Bryant




msg:935690
 2:26 pm on Dec 28, 2005 (gmt 0)

Well we actually ran into something similar on another FP forum. They were using PHP and FP would not use the includes. That turned out to be a problem wiht the _vti folders.

FP / DW is considered a beginner's web development program. When using asp / php, you can use your own includes and they would be a lot better than FP includes. If you are using ASP / PHP, you know more than the basic person knows about web development.

-Corey

pageoneresults




msg:935691
 2:32 pm on Dec 28, 2005 (gmt 0)

FP / DW is considered a beginner's web development program.

Oh-oh, them's fighting words! Actually they can be considered beginner's programs but, there are many here who have taken the programs beyond what most beginners would ever consider doing. ;)

When using asp / php, you can use your own includes and they would be a lot better than FP includes.

Actually, they are not as robust as FP Includes. With FP Includes, you get to see how all includes appear while working locally. They function a little differently than an ASP/PHP Include.

I'm considering all the options above. Actually, I've been playing with DW8 and I like it. Although I'm not too sure I'm ready for the learning curve just yet. Especially after recently changing from Win98 to WinXP. ;)

They were using PHP and FP would not use the includes.

I do believe this is where the PHP Rocket plugin comes into play as it allows you to work with PHP in FrontPage.

europeforvisitors




msg:935692
 11:21 pm on Jan 2, 2006 (gmt 0)

Oh-oh, them's fighting words!

Naah, just a troll. :-)

Corey Bryant




msg:935693
 12:51 pm on Jan 3, 2006 (gmt 0)

Oh-oh, them's fighting words! Actually they can be considered beginner's programs but, there are many here who have taken the programs beyond what most beginners would ever consider doing. ;)
Sorry I really did not see this until the last message. I agree with you fully but I think that MS / DW having created a WYIWYG editor will never fully be able to keep up with the web development side.

FP 2003 does not support CSS fully and even IE does not support it. Maybe in the next decade or so

-Corey

europeforvisitors




msg:935694
 3:54 am on Jan 4, 2006 (gmt 0)

FP 2003 does not support CSS fully

Whether that matters obviously depends on who's using it, and for what.

Notepad doesn't support CSS at all, but some people still write pages with Notepad. :-)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved