Forum Moderators: open
For years now my method has been build it with FP and fix it with notepad -- bummer and real pain in the you know what!
I sincerely hope there are some contributors to this thread you have started and we indeed do find a way to produce clean code with a true (affordable) wysiwyg editor.
There is another thread here at WWW that just started that is about wysiwyg editors in general: see
[webmasterworld.com...]
Much of the code bloat, malformed code and other things that folks talk about all the time is a result of not telling Frontpage what you want it to do. As in any web project, the very first thing you have to do is decide on a doctype, and what technologies and which FP features you're going to use.
Then -- and this is what most new FP users overlook -- you have to go into Page Options on the Tools menu. What is set here determines what code is generated and how it is generated. I usually start with the Authoring tab and choose which FP and browser options I need. Notice that all it takes to get rid of those FP generated meta tags that folks grumble about is simply unchecking a box.
FP has fairly robust support for CSS, just be sure to check the boxes for css 1 or 2. (And now those pesky font tags are gone!)
Code formatting is actually one of FP's strong points. There's a heck of a lot of tweaking you can do at the Code Formatting tab to get your code just the way you want it. Pay particular attention to the Tags section. Besides setting how the code is displayed you can set which start and end tags are generated. If FP is not generating ending P tags, just uncheck Omit End Tag. You can tweak to your heart's content.
It sometimes takes a bit of trial and error, but an hour or so spent here relieves you of many headaches in the future.
That's just a quick starting point. As this thread grows we should get some really good information. Thanks again for starting it.
<added>Hey jbgilbert, if your good at coding in Notepad you should really get a kick coding in FP. Set your Code Formatting, Color Coding and Intellisense options to what you need and you have a pretty powerful code editor. Try it, you might like it ;)</added>
<added>Hey jbgilbert, if your good at coding in Notepad you should really get a kick coding in FP. Set your Code Formatting, Color Coding and Intellisense options to what you need and you have a pretty powerful code editor. Try it, you might like it ;)</added>
I'm still using FP2000 --- I hate upgrading stuff -- seems to get more complicated, more bloaty, more option rich with every release!
What FP version has these options?
Code Formatting, Color Coding and Intellisense options
Just to paraphrase my table advice; MilleB was having issues with the code bloat from manipulating tables in the WYSIWYG editor. I was just explaining that adjusting tables via the Properties form would give more precise control of the code. If you use the WYSIWYG editor FP will do it's best to render your creation, but the code won't be too pretty. It's a trade-off of sorts. I personally prefer to do all of my table styling via CSS.
For years now my method has been build it with FP and fix it with notepad -- bummer and real pain in the you know what!from jbgilbert
I think you can do better than cleaning with NotePad, yesterday i spend some time cleaning up those messy tags with NVU (a Mozilla enhanced tool). I recommend the TAG pane, where you can see the precise and exact tag tree structure in a graphical view and with a lots of click you get if fixed.... click right at the bottom on the tag you want to remove etc... I just wish I could right-click on the tag image itself.
Now I also tried to do the same with FP, guess what? Hardly possible, you can easily clean the <font> tags and <msNormal> stuff. Did not manage to clean the table borders stuff that FP adds. :(
Definitely bill advice on tables is correct use of css works much better.
Side question can you easily edit/create your own CSS with FP? I gone into doing mine outside.
a repost of pageonresults in another threadFrontPage users will want to check out this topic we had a while back...
Things to be aware of when using FrontPage
Remind us why you didn't use it, or workarounds for its pitfalls.things to be aware of when using front page [webmasterworld.com]
Indeed a great deal of good indications in this page! :)
I think you can do better than cleaning with NotePad, yesterday i spend some time cleaning up those messy tags with NVU (a Mozilla enhanced tool). I recommend the TAG pane, where you can see the precise and exact tag tree structure in a graphical view and with a lots of click you get if fixed....
View ¦ Reveal Tags Ctrl + / Remove Formatting
From the WYSIWYG view you can select an area of the page and use the following command:
Format ¦ Remove Formatting Ctrl + Shift + Z So, even if the CSS boxes in the authoring tabs are checked, well, you then have to use CSS for the formatting. For example, EfV, I'm sure you started your site before you ever heard the term CSS, so you're spec'ing each paragraph on the fly:
<font face="Verdana" size="1" color="#C00000">text</font>
If you were using a CSS stylesheet you could define a class:
.copy {
font-family:verdana,arial,sans-serif;
color:#C00000;
font-size:1em;
}
Then spec the paragraph:
<p class="copy">Text here</p>
FP makes this easy to do by choosing the class to apply from the "Style" box on the menu bar.
Basically you won't be able to get rid of the font tags unless you make the switch to CSS for formatting. For a well-established site such as yours that's going to take a heck of a lot of thought before making the leap.
Basically you won't be able to get rid of the font tags unless you make the switch to CSS for formatting. For a well-established site such as yours that's going to take a heck of a lot of thought before making the leap.
Basically you won't be able to get rid of the font tags unless you make the switch to CSS for formatting. For a well-established site such as yours that's going to take a heck of a lot of thought before making the leap. AND A LOT OF WORK IF YOU DECIDE TO CHANGE IT
AND A LOT OF WORK IF YOU DECIDE TO CHANGE IT
So I've discovered while playing around with CSS.
The big question is which gets the clutter cleared out first: My Web site or my office. :-)
Reveal Tags
Actually you have a similar view in FrontPage2003.:
View ¦ Reveal Tags
or
Ctrl + /
Cool. Very handy indeed. Thx bill.
This will remove a lot of the <font> and other formatting that may pop up. It's not as good with the tables though.
It's not just the <font> tags you want to get rid of, it is also the 50+ style declarations you get in the <header>.
I have cleared it a couple of time by hand in the source code, but sometimes I messed it up. Is there an automatic way to do it?
I agree with Bill around table cleaning, I copy paste old content in new table now. But OK I always use the same template for this site I'm working on currently.