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

  • Home
  • SEARCH
  • 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 8099219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:20:03+00:00 2026-06-05T22:20:03+00:00

I have a doxygen header for a function as follows: /** Some description. @param[in]

  • 0

I have a doxygen header for a function as follows:

/** Some description.

    @param[in]  grid1      First grid
    @param[in]  grid2      Second grid

    @pre grid1 and grid2 must be of the same dimensions
*/

I’d like grid1 and grid2 to be specially highlighted in the pre-conditions section of the generated documentations, since they are parameters. In my mind, I should be able to do something like

@pre #grid1 and #grid2 must be the same size

But this doesn’t work.

Any thoughts on how to achieve this?

  • 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-05T22:20:06+00:00Added an answer on June 5, 2026 at 10:20 pm

    It would be nice if # automatically linked to the function argument definition. However, I can’t see anyway of doing this in the automatic link generation section of the doxygen manual.

    Having looked at the documentation HTML source it seems that parameters seem to be simply styled as strong and with the class paramname. So something like

    @pre <strong class="paramname">grid1</strong> and
        <strong class="paramname">grid2</strong> must be the same size.
    

    should give you the results you want. Clearly this is overly verbose to write out each time. However, you should be able to define a custom command, say \paramname, to do this so you could just write

    @pre \paramname{grid1} and \paramname{grid2} must be the same size.
    

    Edit: This can be achieved with the configuration file alias

    ALIASES += paramname{1}="<strong class="paramname">\1</strong>"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a function header format that we have to follow. It basically looks
We have a function header format that we have to follow. It basically looks
I have some C++ source code with templates maybe like this - doxygen runs
if I have a c header file with a doxygen comment: /*! * @file
I am currently starting using doxygen to document my source code. I have notice
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
Consider I have 2 header files. // HEADER 1 /** * Doc for Foo
I'm just getting started with Doxygen, and have done considerable searching on this, so
I am creating a Doxygen document for my project. Recently, I have grouped related
I am trying to use doxygen to generate documentation for some matlab classes I

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.