Adding to Source Code

G

Guest

If I want to automatically add a comment line to each
page, how would I set that up?

For instance, if I wanted to add
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
to each page in my site as well as each new page added,
what would I do?

Or is I wanted a comment line at a certain spot in the
source code on each page, what would I do?

I am running FP 2003.

Your help is very much appreciated.
 
G

Guest

The link provides what I need to add the doctype. Thank
you.

I don't think it's a waste of space given I have a few
sites that validate just fine with that code, albeit,
they are written in Notepad.

Anyhow, what if a comment is needed somewhere else in the
document?
 
J

Jack Brewster

If you're talking about embedding comments within your HTML, use this:
<!-- This is an HTML comment and won't be displayed in the browser. -->
 
S

Stefan B Rusynko

On a per page basis just select the insertion point and Insert Comment
Globally you would need to do a very creative Search & Replace

As for the DocType try the new FP Code Snippets

1. Switch to Code view and position your insertion point where you want to insert the code, press Ctrl-Enter. You'll see a drop down
list (similar to the Intellisense drop-down list) with all the code snippets available on your computer.
2. Type css1. As you type the keyword that you assigned, you will notice that the selected code snippet changes. In many cases, you
don't even need to finish typing the keyword before FrontPage highlights the correct code snippet.
3. Press Enter. FrontPage inserts the code into your page at the insertion point.

NOTE: If you often work in CODE view, you may also want to turn on the Code View Toolbar, which includes access to all Code Snippets
(View Tool Bars and Select the Code View Toolbar). First position your insertion point where you want to insert the code, then from
the Code View Toolbar select the List Code Snippets and select (double click) your code snippet to insert it. The Code View Toolbar
is only active in Code view (not in Spit view).



| The link provides what I need to add the doctype. Thank
| you.
|
| I don't think it's a waste of space given I have a few
| sites that validate just fine with that code, albeit,
| they are written in Notepad.
|
| Anyhow, what if a comment is needed somewhere else in the
| document?
 
G

Guest

-----Original Message-----
If you're talking about embedding comments within your HTML, use this:
<!-- This is an HTML comment and won't be displayed in
the browser. -->
-----Original Message-----<

Right. But what if I want the same comment on every page
in the same spot? How can I have FP place that there
without me having to do so on each page?
 
Top