Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7958893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:29:23+00:00 2026-06-04T04:29:23+00:00

I am using a code example block in an XML comment as a simple

  • 0

I am using a code example block in an XML comment as a simple way to give the user an idea of what the XML looks like. This is a very rough solution and the user will eventually be provided with XML Schema for the xml string. However, for now I’m going to just provide this information in my doxygen-based documentation.

For example, I’ve got something like this:

/// <example>
/// <code>
///   <!-- xml will go below this comment, but I can't display the comment! -->
/// </code>
/// </example>

When I look at my documentation, any line that has a comment just appears as a blank line.

I’ve tried escaping with &lt; and &gt;, and have also tried using <CDATA[<!-- comment -->]]>, without success. The escape sequences are displayed as-is, and CDATA appears as-is, except that the character data is not shown.

What did I miss here? 🙂

EDIT — I need to clarify that this is not an issue with Intellisense rendering the information. I would like the XML comments to display properly when rendered by Doxygen into a CHM (via HTML Help Workshop).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:29:23+00:00Added an answer on June 4, 2026 at 4:29 am

    I’m not sure where your XML source is appearing, is it in the documentation of a function or class? If so, try wrapping the XML in verbatim and \endverbatim tags. For the following example

    /** A test class with some XML in the documentation.
    
     \verbatim
     <example>
     <code>
       <!-- xml will go below this comment, but I can't display the comment! -->
     </code>
     </example>
     \endverbatim
    */
    class Test
        ...
    

    I get the doxygen output:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw this C# using statement in a code example: using StringFormat=System.Drawing.StringFormat; What's that
This is the example code, I'm using these functions for a program, but scanf
I think of using Wasabi block for auto-scaling my Azure application. Looks like the
I'm trying to compile a block of example code using Thrust in an attempt
I was wondering why code block was used in this example below: possibly_hanging_job &
I'm reading an XML file that looks like this: <?xml version=1.0 encoding=utf-8?> <VehicleList> <Vehicle>
So, I need to write an example code using the decorator dessign pattern and
Using the example code included in the man page for DateTime::Astro::Sunrise , I'm getting
Please forgive the verbosity of the following code example. Using Delphi 2009, I created
I need to plot multiple sphere and I was using the example code from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.