Re: xml problem with monodoc

Jonathan Pryor <[email protected]>
Newsgroups gmane.comp.gnome.mono.documentation
Message-ID <[email protected]>
On Fri, 2006-06-23 at 13:20 +0200, Alexandre Grin wrote:
> Ok, thanks a lot. And for a line return?

Why would you need to escape a line return?  I'm not understanding your
scenario...

Code examples should be within <code/> elements, and the rendering of
<code/> elements preserves all newlines (it's like HTML <pre/> but
without using a fixed-width font), e.g.

        <code lang="C#">
        using System;
        
        class Test {
                static string ui_info = 
                        "  &lt;menubar>\n" +
                        "    &lt; menu name=\"MenuFile\" action=
                        \"firstMenu\">\n"+
                        /* ... */
                        "  &lt;/menubar>\n";
                /* ... */
                        
        }
        </code>

Look at the existing XML documentation for examples.

 - Jon


_______________________________________________
Mono-docs-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-docs-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.