]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added div around inlined code.
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 10 May 2018 10:02:54 +0000 (12:02 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 10 May 2018 10:34:49 +0000 (12:34 +0200)
doc/doxygen/scripts/program2doxygen
doc/doxygen/stylesheet.css

index bf19d63878842b3cc26dc1cd22d38c6f75e5d028..054f63ce0cf8e4a6aa5d8b581f2ff65953d0cab4 100644 (file)
@@ -54,6 +54,8 @@ do {
             print " * \n";
         }
         $state = $code_fragment_mode;
+        # Make sure we distinguish from the other code style
+        print " * <div class=inlineddealii>\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 " * </div>\n";
+        }
+   }
  } while (<>);
 
 if ($state == $program_mode) {
index fb64fdfe9fde94beb0472ab6f1ef9139ca4e1a7b..1af448ac6f12037cdcdd7cbbbca74540c5e05d17 100644 (file)
@@ -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;
+}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.