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