HOWTO: Use Keyword Expansion in HTML FilesLast reviewed: October 30, 1997Article ID: Q161577 |
5.00
WINDOWS
kbusage kbhowto
The information in this article applies to:
SUMMARYThis article explains how to include the last update time, the name of the Web page, and other similar items in HTML files on the World Wide Web. You can automatically include these items through keyword expansion when you use Visual SourceSafe. You can also enter other items as regular comments so that they only appear in the source of the HTML document.
MORE INFORMATIONSetting up keyword expansion for HTML files is slightly different than using keywords in regular source code files like those used in Visual C++ and Visual Basic.
Enable Keywords for Web Documents
For external viewing: $Date: $ $JustDate: $ $Modtime: $ For internal documentation: $Author: $ $Archive: $ $Log: $ $Header: $ Add Keywords to HTML FilesTo add a keyword for external viewing, type:
<!-- $$KeyWord: --><!-- $ -->and then type:
<p>Last Updated on: <!-- $$JustDate: --><!-- $ --></p>The following prints out on the Web page when the .htm file is opened with a Web browser:
Last Updated on: 1/1/96To add a keyword for internal documentation, type:
<!-- $KeyWord: $ -->This command acts like a "regular" keyword in that the expansion is only visible when you view the .htm file in a text editor. Note that any keyword that you want to display externally in HTML documents must be preceded by $$. More information on how to manage Web sites with Visual SourceSafe can be found on the World Wide Web at www.microsoft.com/ssafe/techinfo/vssweb.htm.
REFERENCESMicrosoft Visual SourceSafe Help: HTML Keyword Expansion (c) Microsoft Corporation 1996, All Rights Reserved. Contributions by Brian Matsik, Microsoft Corporation
|
KBCategory: kbusage kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |