Partager via


Source-code Topic Template

To copy the template, select the text from the <!DOCTYPE> tag to the </HTML> end tag, right-click, and then click Copy:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 
<html> 
<head> 
<title>Example topic that contains source code</title> 
</head> 
<body>
<h1>Enter heading for a topic that contains a source code example here</h1>
<p>Open each HTML file you want to contain a source code example and add the <CODE> </CODE> tags 
to the code. For individual HTML tags, you can type <b>&amp;amp;</b> followed by <b>lt;</b> on the 
left side of the tag and <b>&amp;amp;</b> followed by <b>gt;</b> on the right side of the tag (the 
example below shows how these should appear around an HTML tag). This code appears in a browser 
as greater than and less than symbols (<>).</p>
<p>This is a way to imitate HTML tags without having the tags used when the page is opened in a 
browser. The following is an example format for extended code examples: </p>
<code> 
<b>&amp;amp;lt;</b>STYLE<b>&amp;amp;gt;</b> BODY { font-family: times, serif; color: black; margin-left: 10%; margin-right: 10%; } A:link {color: black; text-decoration: underline } A:visited { color: black; text-decoration: none} <b>&amp;amp;lt;</b>/STYLE<b>&amp;amp;gt;</b> 
</code>
</body> 
</html>

Example: Help Authoring Templates