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 6156401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:36:14+00:00 2026-05-23T20:36:14+00:00

I currently use doxymacs to syntax highlight doxygen comments and keywords in the C++

  • 0

I currently use doxymacs to syntax highlight doxygen comments and keywords in the C++ files on a collaborative project I’m working on.

However, in the project, there are “plans” files which are basically very long doxygen comments with lots of todos, bugs etc, all using html tags for organisation and presentation.

At present doxymacs only highlights keywords like “todo” and “bug” etc. How can I make it also syntax highlight the html tags within the doxygen comment?

I can do this by switching to “html-mode” but then I lose the standard doxymacs highlighting of “todo” etc. Just being able to use both modes together or combine them would be useful.

So for example, if I had:

/*!
    \todo Test todo
    <ul>
     <li> Some text. </li>
     <li> Some more text. </li>
    </ul>

*/

I’d like the <ul> tags etc to be coloured a different colour to the normal text within the /*! */ comments.

  • 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-05-23T20:36:15+00:00Added an answer on May 23, 2026 at 8:36 pm

    This will font-lock anything in <> as keywords in comments in c-derived modes:

    (defun my-c-font-lock-doxy-html (limit)
      (while (re-search-forward "<.+?>" limit 'move)
        (let ((beg (match-beginning 0))
              (end (match-end 0)))
          (if (nth 4 (syntax-ppss beg))
              (when (nth 4 (syntax-ppss end))
                (c-put-font-lock-face beg end 'font-lock-keyword-face))
            (goto-char end))))
      nil)
    
    (defun my-c-mode-common-hook ()
      (font-lock-add-keywords nil '((my-c-font-lock-doxy-html))))
    
    (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We currently use clearcase on a project, and there is an HTML file that
I currently use AnkhSVN to integrate subversion into Visual Studio. Is there any reason
I currently use http://msbuildtasks.tigris.org/ to help do additional stuff with MSBuild like get files
I currently use Chrome/Firefox for my web development. Is there a plugin, or am
I currently use svn at work. Our setup is: everyone has a working copy
I currently use madExcept .MailAsSmtpClient to send my bug reports. However a couple of
I currently use Devise for user registration/authentication in a Rails project. When a user
I currently use several APIs to pull data from other sites. However, sometimes the
I currently use a web deployment project to update an existing web site through
We currently use SNAPSHOT modifier in development so that project dependencies are linked to

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.