[slf4j-dev] svn commit: r1338 - in slf4j/trunk/slf4j-site/src/site/pages: . css js

ceki at slf4j.org ceki at slf4j.org
Fri Jun 5 14:23:30 CEST 2009


Author: ceki
Date: Fri Jun  5 14:23:30 2009
New Revision: 1338

Added:
   slf4j/trunk/slf4j-site/src/site/pages/css/prettify.css
   slf4j/trunk/slf4j-site/src/site/pages/js/
Modified:
   slf4j/trunk/slf4j-site/src/site/pages/manual.html

Log:
Google-code-prettify works nicely. In particular, it does 
not corrupt tags embedded within the prettified region.

Added: slf4j/trunk/slf4j-site/src/site/pages/css/prettify.css
==============================================================================
--- (empty file)
+++ slf4j/trunk/slf4j-site/src/site/pages/css/prettify.css	Fri Jun  5 14:23:30 2009
@@ -0,0 +1,28 @@
+.str{color:#080}
+.kwd{color:#008}
+.com{color:#800}
+.typ{color:#606}
+.lit{color:#066}
+.pun{color:#660}
+.pln{color:#000}
+.tag{color:#008}
+.atn{color:#606}
+.atv{color:#080}
+.dec{color:#606}
+
+pre.prettyprint{
+  padding:2px;
+}
+ at media print{.str{color:#060}
+
+.kwd{
+  color:#006;font-weight:bold}
+  .com{color:#600;font-style:italic
+}
+.typ{color:#404;font-weight:bold}
+.lit{color:#044}
+.pun{color:#440}
+.pln{color:#000}
+.tag{color:#006;font-weight:bold}
+.atn{color:#404}
+.atv{color:#060}}
\ No newline at end of file

Modified: slf4j/trunk/slf4j-site/src/site/pages/manual.html
==============================================================================
--- slf4j/trunk/slf4j-site/src/site/pages/manual.html	(original)
+++ slf4j/trunk/slf4j-site/src/site/pages/manual.html	Fri Jun  5 14:23:30 2009
@@ -6,10 +6,12 @@
     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
     <title>SLF4J Manual</title>
     <link rel="stylesheet" type="text/css" media="screen" href="css/site.css" />
+    <link rel="stylesheet" type="text/css" href="css/prettify.css" />
   </head>
-  <body>
+  <body onload="prettyPrint()">
     <script type="text/javascript">prefix='';</script>
 
+    <script type="text/javascript" src="js/prettify.js"></script>
     <script src="templates/header.js" type="text/javascript"></script>
     <div id="left">
       <script src="templates/left.js" type="text/javascript"></script>
@@ -35,7 +37,7 @@
     logger is in turn used to log the message "Hello World". 
     </p>
 
-<pre class="source">import org.slf4j.Logger;
+<pre class="prettyprint source">import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class HelloWorld {
@@ -73,7 +75,7 @@
      
      <p></p>
 
-      <p class="source"> 1: <b>import org.slf4j.Logger;</b>
+      <pre class="prettyprint source"> 1: <b>import org.slf4j.Logger;</b>
  2: <b>import org.slf4j.LoggerFactory;</b>
  3: 
  4: public class Wombat {
@@ -93,7 +95,7 @@
 18:       <b>logger.info("Temperature has risen above 50 degrees.");</b>
 19:     }
 20:   }
-21: } </p>
+21: } </pre>
       
      
 



More information about the slf4j-dev mailing list