From 7750a905a531bba9d57369d67e694498e96c1dc8 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 10 May 2018 12:02:54 +0200 Subject: [PATCH] Added div around inlined code. --- doc/doxygen/scripts/program2doxygen | 11 +++++++++-- doc/doxygen/stylesheet.css | 8 ++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/doc/doxygen/scripts/program2doxygen b/doc/doxygen/scripts/program2doxygen index bf19d63878..054f63ce0c 100644 --- a/doc/doxygen/scripts/program2doxygen +++ b/doc/doxygen/scripts/program2doxygen @@ -54,6 +54,8 @@ do { print " * \n"; } $state = $code_fragment_mode; + # Make sure we distinguish from the other code style + print " *
\n"; } # We shall skip something... elsif (($state != $skip_mode) && m!^\s*//\s*\@cond SKIP!) @@ -128,7 +130,7 @@ do { } elsif ($state == $code_fragment_mode) { - # This is the end of a @code - @endcode block, so back to + # If this is the end of a @code - @endcode block, go back to # comment_mode: if (m!^\s*//\s*\@endcode!) { @@ -140,7 +142,12 @@ do { # finally print this line print " * $_\n"; - } + + if (m!^ *\s*\@endcode!) + { + print " *
\n"; + } + } } while (<>); if ($state == $program_mode) { diff --git a/doc/doxygen/stylesheet.css b/doc/doxygen/stylesheet.css index fb64fdfe9f..1af448ac6f 100644 --- a/doc/doxygen/stylesheet.css +++ b/doc/doxygen/stylesheet.css @@ -81,3 +81,11 @@ div.image img[src="fe_enriched_h-refinement.png"] { margin-left: auto; margin-right: auto; } + + +/* + * environment for custom codes + */ +.inlineddealii { + background-color: #FF33F0; +} -- 2.39.5