After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 618462 - Fortran: doxygen comments no longer customizable viz cascading style sheet (doxygen.css)
Fortran: doxygen comments no longer customizable viz cascading style sheet (d...
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.6.3
Other Windows
: Normal minor
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2010-05-12 15:41 UTC by shawn
Modified: 2012-06-10 09:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
zip file containing source & config files (118.23 KB, application/x-zip-compressed)
2010-05-12 22:35 UTC, shawn
  Details
PATCH: correcting handling of comments in code (2.83 KB, patch)
2012-05-28 07:48 UTC, albert
none Details | Review

Description shawn 2010-05-12 15:41:58 UTC
language: Fortran (free-format)

bug didnt exist: v1.6.1

bug exists: v1.6.3

When i was using version 1.6.1 of doxygen i could change the font color and background color of all the comments in my code as they appeared in the html version of my documentation (SOURCE_BROWSER = checked) by modifying the "comment" class in the cascading style sheet.

But now in version 1.6.3 the html source for the page that displayes my fortran code is missing the tag <span class="comment"> for doxygen comments ("!>"). the tag is still there for the regular comments ("!").

this is similar to bug 608072.
Comment 1 Dimitri van Heesch 2010-05-12 17:48:21 UTC
Can you please attach a self-contained example (source+config file in a tar or zip) that allows me to reproduce the problem?
Comment 2 shawn 2010-05-12 22:35:43 UTC
Created attachment 160940 [details]
zip file containing source & config files

attached is a zip file containing one source file (test.f90) and one config file (test.dox) and my modified cascading style sheet (doxygen.css) and 2 jpegs (screen captures of the html generated documentation) each labeled with the version they were generated from.

notice the difference in the colors of the lines of code marked as "doxygen comments".
Comment 3 albert 2012-05-28 07:33:42 UTC
Besides the problems mentioned, also continuation of comment lines for variables after the variable don't work properly (especially when multiple lines are used).
Comments after the variables are not stripped when STRIP_CODE_COMMENT is set to YES

Example:

!==============================================================================
!> first line of comment<br>
!> second line of comment
!
!> next section of comment first line<br>
!! next section of comment second line of comment
!==============================================================================
Subroutine error_comment(arg1, arg2, arg3)
!==============================================================================
integer  :: arg1 !< arg1 comment
integer  :: arg2 !< arg2 comment<br>
                 !< continuation of arg2
integer  :: arg3 !< arg3 comment<br>
                 !! continuation of arg3
!==============================================================================
end
Comment 4 albert 2012-05-28 07:48:58 UTC
Created attachment 215113 [details] [review]
PATCH: correcting handling of comments in code

The attached patch fixes coloring regarding multiline comments in the source code and also handling of STRIP_CODE_COMMENT

(patch is based on svn version 818)
Comment 5 Dimitri van Heesch 2012-05-28 09:30:54 UTC
Thanks, I'll include the patch in the next subversion update.
Comment 6 Dimitri van Heesch 2012-06-10 09:41:48 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1.1. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.