FP 2003: line wrapping in code view?

S

Super Mario

Is is possible to get FP 2003 to line wrap when viewing a page's source
in Code View? Currently horizontal scrollbars appear with very long
lines of code, making it hard to edit.

Most text editors support this feature, but not FP2003?

Thx,
 
K

Kathleen Anderson [MVP - FP]

With a page open, try Tools | Page Options | General | Code View Options |
Word Wrap
 
S

Super Mario

Kathleen said:
With a page open, try Tools | Page Options | General | Code View Options |
Word Wrap

Thanks! That seemed to have done the trick. Does any one know of an easy
way to toggle between line wrap and no line wrap (ie: via a click of a
button, one step only)? Only way to make debugging and editting easy at
the same time.
 
S

Stefan B Rusynko

Not unless you write some custom VBA to access the FP tool bar menus using the CommandBarControl Object

FYI - html code wrapping and white space will affect the way some html is displayed in web pages (especially tables cells)

--




| Kathleen Anderson [MVP - FP] wrote:
| > With a page open, try Tools | Page Options | General | Code View Options |
| > Word Wrap
| >
|
| Thanks! That seemed to have done the trick. Does any one know of an easy
| way to toggle between line wrap and no line wrap (ie: via a click of a
| button, one step only)? Only way to make debugging and editting easy at
| the same time.
|
 
S

Super Mario

Oh wait, the word wrapping feature in FP 2003 is physical wrap, not
virtual? Damn that doesnt seem very bright at all...
 
C

chris leeds

I would think one way wraps it so you don't have to scroll, the other wraps
it and keeps it like that for real and permanently. that's how I assumed it
was with notepad.
No?
 
J

Jim Cheshire

I guess it helps to understand how FrontPage renders HTML.

When you switch from code view to other views, the HTML is entirely
rewritten. Unlike Notepad, FrontPage must interpret everything in code view
and render it in Design view. That process dictates that what you see in
code view is what really "is".

--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Buy my book!
Special Edition Using Microsoft FrontPage 2003
Don't take my word for it. Read the reviews!
===================================
Our newest add-in:
FrontPage Cart Companion
http://www.frontpagecartcompanion.com
 
C

chris leeds

I see. that must play hell on php, asp, etc. or are there provisions to
prevent wrapping of these type of lines?
 
J

Jim Cheshire

I'd say that it takes that into account, but that's only based on personal
experience. I'm not sure exactly how the code in mshtml.dll handles that.

--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Buy my book!
Special Edition Using Microsoft FrontPage 2003
Don't take my word for it. Read the reviews!
===================================
Our newest add-in:
FrontPage Cart Companion
http://www.frontpagecartcompanion.com
 
S

Stefan B Rusynko

Not certain about FP2003 (it may be better)
- but using any code line wrapping usually results in a mess in your html, scripts etc.

IMHO - never code wrap, learn to scroll

--




| I'd say that it takes that into account, but that's only based on personal
| experience. I'm not sure exactly how the code in mshtml.dll handles that.
|
| --
| Jim Cheshire
| Jimco Add-ins
| http://www.jimcoaddins.com
| ===================================
| Buy my book!
| Special Edition Using Microsoft FrontPage 2003
| Don't take my word for it. Read the reviews!
| ===================================
| Our newest add-in:
| FrontPage Cart Companion
| http://www.frontpagecartcompanion.com
|
|
| | > I see. that must play hell on php, asp, etc. or are there provisions to
| > prevent wrapping of these type of lines?
| >
| >
| > | > > I guess it helps to understand how FrontPage renders HTML.
| > >
| > > When you switch from code view to other views, the HTML is entirely
| > > rewritten. Unlike Notepad, FrontPage must interpret everything in code
| > view
| > > and render it in Design view. That process dictates that what you see
| in
| > > code view is what really "is".
| > >
| > > --
| > > Jim Cheshire
| > > Jimco Add-ins
| > > http://www.jimcoaddins.com
| > > ===================================
| > > Buy my book!
| > > Special Edition Using Microsoft FrontPage 2003
| > > Don't take my word for it. Read the reviews!
| > > ===================================
| > > Our newest add-in:
| > > FrontPage Cart Companion
| > > http://www.frontpagecartcompanion.com
| > >
| > >
| > > | > > > I would think one way wraps it so you don't have to scroll, the other
| > > wraps
| > > > it and keeps it like that for real and permanently. that's how I
| > assumed
| > > it
| > > > was with notepad.
| > > > No?
| > > >
| > > > | > > > > Super,
| > > > >
| > > > > Think about it. What's the difference?
| > > > >
| > > > > --
| > > > > Jim Cheshire
| > > > > Jimco Add-ins
| > > > > http://www.jimcoaddins.com
| > > > > ===================================
| > > > > Co-author of Special Edition
| > > > > Using Microsoft FrontPage 2003
| > > > > ===================================
| > > > > Our newest add-in:
| > > > > FrontPage Cart Companion
| > > > > http://www.frontpagecartcompanion.com
| > > > >
| > > > >
| > > > > | > > > > > Oh wait, the word wrapping feature in FP 2003 is physical wrap,
| not
| > > > > > virtual? Damn that doesnt seem very bright at all...
| > > > > >
| > > > > > Stefan B Rusynko wrote:
| > > > > > > Not unless you write some custom VBA to access the FP tool bar
| > menus
| > > > > using the CommandBarControl Object
| > > > > > >
| > > > > > > FYI - html code wrapping and white space will affect the way
| some
| > > html
| > > > > is displayed in web pages (especially tables cells)
| > > > > > >
| > > > > >
| > > > >
| > > > >
| > > >
| > > >
| > >
| > >
| >
| >
|
|
 
S

Super Mario

Hi Jim;
Actually, I just did a little experiment to see if the line wrapping
feature in FP 2003 is in fact physical (literal). Seems like it's not,
which is a good thing. What I did was enter a simple
document.write('dfsdfsf sdfsdsdf sfsd sfds very long...') statement into
code view, enough to span two lines when viewed with word wrapping
turned on. The JavaScript still performs without errors, which tells me
the wrapping is virtual. Otherwise, it would have spawned a JS error
when saved and viewed in any browser due to the inadvertant line break.
 
J

Jim Cheshire

Thanks, Super. That completely negates my previous statement. :) Thanks
for the post.

--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Buy my book!
Special Edition Using Microsoft FrontPage 2003
Don't take my word for it. Read the reviews!
===================================
Our newest add-in:
FrontPage Cart Companion
http://www.frontpagecartcompanion.com
 

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