From: Luca Heltai Date: Thu, 10 May 2018 10:02:54 +0000 (+0200) Subject: Added div around inlined code. X-Git-Tag: v9.0.0~1^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23bf5c4dd413481e240bbf5a2cd3220007fd796c;p=dealii.git Added div around inlined code. --- 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; +}