"deko" <www-dot-clearpointsystems-dot-com@nospam.com> wrote:
[color=blue][color=green]
>> Replace occurrences of < with < , for consistency you might also
>> consider replacing > with >
>>
>> Then enclose it in:
>>
>> <pre><code>
>> ...
>> </code></pre>
>>
>> markup.[/color]
>
> That did the trick:[/color]
Consider that an illusion.
[color=blue]
> <pre>
> <code>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <appSettings>
> <add key="ConnectionString" "Password=password;Persist Security
> Info=True;User ID=newuser;Initial Catalog=database;Data
> Source=localhost" />
> </appSettings>
> </configuration>
> </code>
> </pre>[/color]
You are not using the semicolon as instructed. Terminating entity
references with semicolon has always been good practice in HTML, and in
XHTML it is obligatory - an XHTML conformant browser is _required_ to
choke on your usage. Besides, e.g. <add is invalid in good old HTML
too, and is to be treated as an undefined entity reference.
As a minor detail, it is a bit safer to write
<pre><code><?xml version="1.0" ...
...
</configuration></code></pre>
i.e. to have no line breaks after <pre> and <code> tags or before </code>
or </pre> tags. The reason is that many browsers get the relevant parsing
rules wrong and may understand the situation so that there is an empty
line at the start of the <pre> element and at the end of it. You might
see this if you set a background color or a border for the <pre> element.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html