You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ge...@apache.org on 2010/10/18 09:43:59 UTC

svn commit: r1023671 - in /servicemix/documentation/trunk/src/main/webapp: WEB-INF/scalate/layouts/ camel/ getting-started/ jbi/ nmr/ scripts/syntaxhl/scripts/ scripts/syntaxhl/src/ scripts/syntaxhl/styles/ theme/

Author: gertv
Date: Mon Oct 18 07:43:57 2010
New Revision: 1023671

URL: http://svn.apache.org/viewvc?rev=1023671&view=rev
Log:
Using Pygments instead of SyntaxHighlighter (incl. PDF)

Added:
    servicemix/documentation/trunk/src/main/webapp/theme/pygmentize.css
Removed:
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/clipboard.swf
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushAS3.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushBash.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushCSharp.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushColdFusion.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushCpp.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushCss.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushDelphi.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushDiff.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushErlang.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushGroovy.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushJScript.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushJava.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushJavaFX.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushPerl.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushPhp.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushPlain.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushPowerShell.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushPython.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushRuby.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushScala.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushSql.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushVb.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shBrushXml.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shCore.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/scripts/shLegacy.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/src/shCore.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/src/shLegacy.js
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/help.png
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/magnifier.png
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/page_white_code.png
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/page_white_copy.png
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/printer.png
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/shCore.css
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/shThemeDefault.css
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/shThemeDjango.css
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/shThemeEclipse.css
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/shThemeEmacs.css
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/shThemeFadeToGrey.css
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/shThemeMidnight.css
    servicemix/documentation/trunk/src/main/webapp/scripts/syntaxhl/styles/shThemeRDark.css
Modified:
    servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/default.ssp
    servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/print.ssp
    servicemix/documentation/trunk/src/main/webapp/camel/camel-deployment.conf
    servicemix/documentation/trunk/src/main/webapp/getting-started/installation.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-bean.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-camel.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-bc.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-se.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-drools.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-eip.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-file.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-ftp.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-http.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-jms.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-mail.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-osworkflow.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-quartz.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-saxon.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-scripting.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-snmp.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-validation.conf
    servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-vfs.conf
    servicemix/documentation/trunk/src/main/webapp/nmr/nmr-camel.conf
    servicemix/documentation/trunk/src/main/webapp/nmr/nmr-event-listeners.conf
    servicemix/documentation/trunk/src/main/webapp/theme/master.css
    servicemix/documentation/trunk/src/main/webapp/theme/print.css

Modified: servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/default.ssp
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/default.ssp?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/default.ssp (original)
+++ servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/default.ssp Mon Oct 18 07:43:57 2010
@@ -20,42 +20,15 @@ limitations under the License.
 <!DOCTYPE html>
 <html>
 <head>
-  <link href="${uri("/theme/master.css")}" rel="Stylesheet" type="text/css" />
   <title>${title}</title>
 
+  <link href="${uri("/theme/master.css")}" rel="Stylesheet" type="text/css" />
+  <link href="${uri("/theme/pygmentize.css")}" rel="stylesheet" type="text/css" />
+
   <script type="text/javascript" src="${uri("/scripts/jquery.js")}"></script>
   <script type="text/javascript" src="${uri("/scripts/jquery.cookie.js")}"></script>
   <script type="text/javascript" src="${uri("/scripts/jquery.jstree.js")}"></script>
 
-  <!--
-      NOTICE - SyntaxHighlighter (http://alexgorbatchev.com/wiki/SyntaxHighlighter) is licensed under LGPL v3
-
-      This script is being used to highlight the syntax of the <code/> blocks in our documentation.
-      You can disable the script by removing all the code between this NOTICE and END - SyntaxHighlighter.
-  -->
-
-  <!-- Include *at least* the core style and default theme -->
-  <link href="${uri("/scripts/syntaxhl/styles/shCore.css")}" rel="stylesheet" type="text/css" />
-  <link href="${uri("/scripts/syntaxhl/styles/shThemeDefault.css")}" rel="Stylesheet" type="text/css" />
-
-  <!-- Include required JS files -->
-  <script type="text/javascript" src="${uri("/scripts/syntaxhl/scripts/shCore.js")}"></script>
-  <script type="text/javascript" src="${uri("/scripts/syntaxhl/scripts/shLegacy.js")}"></script>
-
-  <!-- At least one brush, here we choose JS. You need to include a brush for every language you want to highlight -->
-  <script type="text/javascript" src="${uri("/scripts/syntaxhl/scripts/shBrushJava.js")}"></script>
-  <script type="text/javascript" src="${uri("/scripts/syntaxhl/scripts/shBrushXml.js")}"></script>
-
-  <!-- Finally, to actually run the highlighter, you need to include this JS on your page
-       TODO: This does not work at the moment because the class="brush: java" is missing from the generated HTML code -->
-  <script type="text/javascript">
-    SyntaxHighlighter.config.clipboardSwf = '${uri("/scripts/syntaxhl/scripts/clipboard.swf")}';
-    SyntaxHighlighter.all()
-    dp.SyntaxHighlighter.HighlightAll('code');
-  </script>
-
-  <!-- END - SyntaxHighlighter -->
-
   <script>
     $(document).ready(function(){
 	  $("#navigation").jstree({

Modified: servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/print.ssp
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/print.ssp?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/print.ssp (original)
+++ servicemix/documentation/trunk/src/main/webapp/WEB-INF/scalate/layouts/print.ssp Mon Oct 18 07:43:57 2010
@@ -21,6 +21,8 @@ limitations under the License.
 <html>
 <head>
   <link href="${uri("/theme/print.css")}" rel="Stylesheet" type="text/css" />
+  <link href="${uri("/theme/pygmentize.css")}" rel="stylesheet" type="text/css" />
+
   <title>${title}</title>
 </head>
 <body>

Modified: servicemix/documentation/trunk/src/main/webapp/camel/camel-deployment.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/camel/camel-deployment.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/camel/camel-deployment.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/camel/camel-deployment.conf Mon Oct 18 07:43:57 2010
@@ -11,7 +11,7 @@ h2. Deploy as a plain Spring XML file
 ServiceMix ${servicemix.version} supports the deployment of plain Spring XML files, automatically creating and starting the Spring ApplicationContext from the XML file.
 
 In order to leverage this feature to create and start Camel routes, drop a file with this syntax in the {{$SERVICEMIX_HOME/deploy}} folder:
-{code:lang=xml}
+{pygmentize:lang=xml}
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -27,11 +27,11 @@ In order to leverage this feature to cre
   </camelContext>
 
 </beans>
-{code}
+{pygmentize}
 
 h3. An example
 Just create a new XML file in the deploy folder with the code below to start a route to copy files from one directory to another.
-{code:lang=xml}
+{pygmentize:lang=xml}
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -51,7 +51,7 @@ Just create a new XML file in the deploy
   </camelContext>
 
 </beans>
-{code}
+{pygmentize}
 
 h2. Deploy as an OSGi bundle
 The Spring XML file can also be deployed as part of a bundle by adding it to the {{META-INF/spring}} folder.  When the bundle is being started, the Spring ApplicationContext is created and started as well.  This kind of deployment also allows using Java or Scala Routebuilders for defining the routes.
@@ -61,7 +61,7 @@ The route can be defined directly in the
 
 h3. Using a Java or Scala RouteBuilder
 When using a Java (or Scala) RouteBuilder to define your Camel routes, the Spring XML file refers to the packages containing the RouteBuilder classes:
-{code:lang=xml}
+{pygmentize:lang=xml}
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -77,10 +77,10 @@ When using a Java (or Scala) RouteBuilde
   </camelContext>
 
 </beans>
-{code}
+{pygmentize}
 
 The matching Java RouteBuilder class could look like this
-{code:lang=java}
+{pygmentize:lang=java}
 package org.apache.servicemix.manual.camel;
 
 import org.apache.camel.builder.RouteBuilder;
@@ -94,10 +94,10 @@ public class MyRouteBuilder extends Rout
   }
 
 }
-{code}
+{pygmentize}
 
 A similar Scala RouteBuilder could look like
-{code:lang=scala}
+{pygmentize:lang=scala}
 package org.apache.servicemix.manual.camel;
 
 import org.apache.camel.scala.dsl.builder.RouteBuilder;
@@ -110,5 +110,5 @@ class MyRouteBuilder extends RouteBuilde
   }
 
 }
-{code}
+{pygmentize}
 

Modified: servicemix/documentation/trunk/src/main/webapp/getting-started/installation.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/getting-started/installation.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/getting-started/installation.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/getting-started/installation.conf Mon Oct 18 07:43:57 2010
@@ -30,25 +30,25 @@ First you need to uncompress the downloa
 
 Define the SERVICEMIX_HOME variable:
 * Windows \\
-{code}
+{pygmentize:lang=bat}
 > set SERVICEMIX_HOME=C:\apache-servicemix-${servicemix.version}
-{code}
+{pygmentize}
 * Linux/Unix \\
-{code}
+{pygmentize:lang=bash}
 $ export SERVICEMIX_HOME=/apache-servicemix-&version;
-{code}
+{pygmentize}
 
 h4. Starting ServiceMix
 * Windows
-{code}
+{pygmentize:lang=bat}
 > cd %SERVICEMIX_HOME%
 > .\bin\servicemix
-{code}
+{pygmentize}
 * Linux/Unix
-{code}
+{pygmentize:lang=bash}
 $ cd $SERVICEMIX_HOME
 $ ./bin/servicemix
-{code}
+{pygmentize}
 
 h4. Stopping ServiceMix
 For both Windows and Unix installations, terminate ServiceMix by typing "CTRL-C" on the command line where ServiceMix is running. ServiceMix uses the Java shutdown hook to cleanly shut down the container.

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-bean.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-bean.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-bean.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-bean.conf Mon Oct 18 07:43:57 2010
@@ -5,13 +5,13 @@ The ServiceMix Bean component provides i
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/bean/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:bean="http://servicemix.apache.org/bean/1.0">
 
   <!-- add bean:endpoint definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-bean component only defines one endpoint, called {{bean:endpoint}}.  It can be used to receive and send message exchanges from/to the NMR.
@@ -21,14 +21,14 @@ h2. {{Endpoint bean:endpoint}}
 h3. Using a Java class
 When definining a {{bean:endpoint}} specifying a Java class name, a new instance of this class will be created for handling a single message exchange.
 
-{code}
-    <beans xmlns:bean="http://servicemix.apache.org/bean/1.0"
-           xmlns:my="urn:org:servicmix:docs:examples">
+{pygmentize:lang=xml}
+<beans xmlns:bean="http://servicemix.apache.org/bean/1.0"
+       xmlns:my="urn:org:servicmix:docs:examples">
 
-      <bean:endpoint service="my:service" endpoint="endpoint"
-                     class="org.apache.servicemix.docs.bean.MyHandlerBean"/>
+  <bean:endpoint service="my:service" endpoint="endpoint"
+                 class="org.apache.servicemix.docs.bean.MyHandlerBean"/>
 
-    </beans>
-{code}
+</beans>
+{pygmentize}
 
 h3. TODO: add other configuration types

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-camel.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-camel.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-camel.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-camel.conf Mon Oct 18 07:43:57 2010
@@ -7,7 +7,7 @@ h3. Namespace and camel-context.xml
 When creating a servicemix-camel service unit, we reuse the default Camel namespace {{http://camel.apache.org/schema/spring}}.
 
 This is an example {{camel-context.xml}} which uses the Spring DSL to define the Camel routes
-{code:lang=xml}
+{pygmentize:lang=xml}
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -24,10 +24,10 @@ This is an example {{camel-context.xml}}
   </camelContext>
 
 </beans>
-{code}
+{pygmentize}
 
 It is also possible to use the Java DSL inside a servicemix-camel service unit by referring to the package that contains the {{RouteBuilder}} classes.  An example: this {{camel-context.xml}} file will activate all routes defined by {{RouteBuilder}}s in the {{org.apache.servicemix.example.camel}} package.
-{code:lang=xml}
+{pygmentize:lang=xml}
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -42,30 +42,30 @@ It is also possible to use the Java DSL 
   </camelContext>
 
 </beans>
-{code}
+{pygmentize}
 
 h2. URI
 Camel routes use URIs to interact with the ESB.  You can use these URIs to expose new endpoints on the ESB as well as to send message exchanges to existing endpoints.
 
 The snippet below automatically exposes a new endpoint to the bus, where the service QName is {{{http://foo.bar.org}MyService}} and the endpoint name is {{MyEndpoint}}.
-{code:lang=java}
+{pygmentize:lang=java}
 from("jbi:endpoint:http://foo.bar.org/MyService/MyEndpoint")
-{code}
+{pygmentize}
 
 When a JBI endpoint appears at the end of a route, as in the example below, that will send 
-{code:lang=java}
+{pygmentize:lang=java}
 to("jbi:endpoint:http://foo.bar.org/MyService/MyEndpoint")
-{code}
+{pygmentize}
 
 The messages sent by this producer endpoint are sent to the already deployed JBI endpoint.
 
 h3. URI format
 
-{code}
+{pygmentize:lang=text}
 jbi:service:serviceNamespace[sep]serviceName[?options]
 jbi:endpoint:serviceNamespace[sep]serviceName[sep]endpointName[?options]
 jbi:name:endpointName[?options]
-{code}
+{pygmentize}
 
 The separator that should be used in the endpoint URL is:
 * {{/}} (forward slash), if {{serviceNamespace}} starts with {{http://}}
@@ -76,22 +76,22 @@ You can append query options to the URI 
 h4. Examples
 h5. Using {{jbi:service}}
 
-{code}
+{pygmentize:lang=text}
 jbi:service:http://foo.bar.org/MyService
 jbi:service:urn:foo:bar:MyService
-{code}
+{pygmentize}
 
 h5. Using {{jbi:endpoint}}
-{code}
+{pygmentize:lang=text}
 jbi:endpoint:urn:foo:bar:MyService:MyEndpoint
 jbi:endpoint:http://foo.bar.org/MyService/MyEndpoint
-{code}
+{pygmentize}
 
 h5. Using {{jbi:name}}
 When using {{jbi:name}}, the component uses {{http://activemq.apache.org/camel/schema/jbi}endpoint}} as the default Service QName.
-{code}
+{pygmentize:lang=text}
 jbi:name:MyEndpoint
-{code}
+{pygmentize}
 
 h3. URI options
 || Name || Default value || Description ||
@@ -101,17 +101,17 @@ h3. URI options
 | {{convertException}} | {{false}} | {{false}}: send any exceptions thrown from the Camel route back unmodified \\ {{true}}: convert all exceptions to a JBI FaultException (can be used to avoid non-serializable exceptions or to implement generic error handling |
 
 h4. Examples
-{code}
+{pygmentize:lang=text}
 jbi:service:http://foo.bar.org/MyService?mep=in-out       (override the MEP, use InOut JBI MessageExchanges)
 jbi:endpoint:urn:foo:bar:MyService:MyEndpoint?mep=in      (override the MEP, use InOnly JBI MessageExchanges)
 jbi:endpoint:urn:foo:bar:MyService:MyEndpoint?operation={http://www.mycompany.org}AddNumbers
 (overide the operation for the JBI Exchange to {http://www.mycompany.org}AddNumbers)
-{code}
+{pygmentize}
 
 h2. Example routes
 h3. Simple Spring route
 This simple Spring route registers a new endpoint on the ESB (service {{{urn:org:example}Router}}, endpoint name {{orders}}).  The message exchange contents will be logged and then forwarded to another JBI service endpoint (service {{{http://services.example.org}OrderService}})
-{code:lang=xml}
+{pygmentize:lang=xml}
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
@@ -129,11 +129,11 @@ This simple Spring route registers a new
           </camelContext>
 
 </beans>
-{code}
+{pygmentize}
 
 h3. The same route using the Java DSL
 When we implement the same route in the Java DSL, we first code our {{RouteBuilder}} implementation
-{code:lang=java}
+{pygmentize:lang=java}
 package org.apache.servicemix.example;
 
 import org.apache.camel.builder.RouteBuilder;
@@ -147,10 +147,10 @@ public class JbiRouteBuilder extends Rou
       .to("jbi:service:http://services.example.org/OrderService");
   }
 }
-{code}
+{pygmentize}
 
 In our {{camel-context.xml}} file, we just refer to the {{org.apache.servicemix.example}} package that contains our {{JbiRouteBuilder}}.
-{code:lang=xml}
+{pygmentize:lang=xml}
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
@@ -168,7 +168,7 @@ In our {{camel-context.xml}} file, we ju
   </camelContext>
 
 </beans>
-{code}
+{pygmentize}
 
 
 
@@ -178,10 +178,10 @@ h2. Special considerations
 h3. Stream handling
 If you are using a stream type as the message body, you should be aware that a stream is only capable of being read once. So if you enable {{DEBUG}} logging, the body is usually logged and thus read. To deal with this, Camel has a {{streamCaching}} option that can cache the stream, enabling you to read it multiple times.
 
-{code:lang=java}
+{pygmentize:lang=java}
 from("jbi:endpoint:http://foo.bar.org/MyService/MyEndpoint")
   .streamCaching()
   .to("xslt:transform.xsl", "bean:doSomething");
-{code}
+{pygmentize}
 
 Camel will cache large input streams (by default, over 64K) in a {{temp}} file using {{CachedOutputStream}}. When you close the input stream, the temp file will be deleted.

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-bc.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-bc.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-bc.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-bc.conf Mon Oct 18 07:43:57 2010
@@ -17,13 +17,13 @@ The main features are:
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/cxfbc/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0">
 
   <!-- add cxfbc:consumer or cxfbc:provider definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-cxf-bc component defines two endpoints:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-se.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-se.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-se.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-cxf-se.conf Mon Oct 18 07:43:57 2010
@@ -13,13 +13,13 @@ Features:
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/cxfse/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0">
 
   <!-- add cxfse:endpoint definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-cxf-bc component defines one endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-drools.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-drools.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-drools.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-drools.conf Mon Oct 18 07:43:57 2010
@@ -9,13 +9,13 @@ A router will mostly act as a transparen
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/drools/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:drools="http://servicemix.apache.org/drools/1.0">
 
   <!-- add drools:endpoint definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-drools component defines one endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-eip.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-eip.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-eip.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-eip.conf Mon Oct 18 07:43:57 2010
@@ -6,13 +6,13 @@ This component is based on the great Ent
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/eip/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:drools="http://servicemix.apache.org/eip/1.0">
 
   <!-- add one of the eip endpoint definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-eip component defines several endpoint types:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-file.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-file.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-file.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-file.conf Mon Oct 18 07:43:57 2010
@@ -6,13 +6,13 @@ The ServiceMix File component provides J
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/file/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:file="http://servicemix.apache.org/file/1.0">
 
   <!-- add file:poller and file:sender definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-file component defines two endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-ftp.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-ftp.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-ftp.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-ftp.conf Mon Oct 18 07:43:57 2010
@@ -6,13 +6,13 @@ The ServiceMix FTP component provides JB
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/ftp/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0">
 
   <!-- add ftp:poller and ftp:sender definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-ftp component defines two endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-http.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-http.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-http.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-http.conf Mon Oct 18 07:43:57 2010
@@ -20,14 +20,14 @@ Here are the main features:
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/http/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:http="http://servicemix.apache.org/http/1.0">
 
   <!-- add http:consumer, http:soap-consumer
            http:provider and http soap:provider definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-http component defines four endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-jms.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-jms.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-jms.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-jms.conf Mon Oct 18 07:43:57 2010
@@ -15,14 +15,14 @@ Here are the main features:
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/jms/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:jms="http://servicemix.apache.org/jms/1.0">
 
   <!-- add jms:consumer, jms:soap-consumer, jms:jca-consumer,
            jms:provider, jms:soap-provider and jms:jca-provider definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-jms component defines six endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-mail.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-mail.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-mail.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-mail.conf Mon Oct 18 07:43:57 2010
@@ -6,13 +6,13 @@ he ServiceMix Mail component provides su
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/mail/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:mail="http://servicemix.apache.org/mail/1.0">
 
   <!-- add mail:poller and mail:sender definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-mail component defines two endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-osworkflow.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-osworkflow.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-osworkflow.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-osworkflow.conf Mon Oct 18 07:43:57 2010
@@ -6,13 +6,13 @@ The ServiceMix OSWorkflow component prov
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/osworkflow/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:osworkflow="http://servicemix.apache.org/osworkflow/1.0">
 
   <!-- add osworkflow:endpoint here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-osworkflow component defines a single endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-quartz.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-quartz.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-quartz.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-quartz.conf Mon Oct 18 07:43:57 2010
@@ -5,13 +5,13 @@ The servicemix-quartz component is a sta
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/quartz/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:osworkflow="http://servicemix.apache.org/quartz/1.0">
 
   <!-- add quartz:endpoint here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-quartz component defines a single endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-saxon.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-saxon.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-saxon.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-saxon.conf Mon Oct 18 07:43:57 2010
@@ -5,13 +5,13 @@ The servicemix-saxon component is a stan
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/saxon/1.0}}.  This is an example of {{xbean.xml}} file with a namespace definition with prefix {{saxon}}.
-{code}
+{pygmentize:lang=xml}
     <beans xmlns:saxon="http://servicemix.apache.org/saxon  /1.0">
 
       <!-- add saxon:xslt, saxon:xquery or saxon:proxy definitions here -->
 
     </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-saxon component defines these endpoints:
@@ -22,10 +22,10 @@ The servicemix-saxon component defines t
 h2. Endpoint {{saxon:xslt}}
 
 The XSLT endpoint can be used to apply an XSLT stylesheet to the incoming exchange and will return the transformed result as the output message.
-{code:lang=xml}
+{pygmentize:lang=xml}
 <saxon:xslt service="test:xslt" endpoint="endpoint"
             resource="classpath:transform.xsl" />
-{code}
+{pygmentize}
 
 h3. Mandatory properties
 The endpoint requires one of these two properties to be specified:
@@ -53,7 +53,7 @@ All those parameters can be accessed usi
 
 h2. Endpoint {{saxon:proxy}}
 One common use case is the need to transform a request coming from a service and send it to another service and do the same with the response.  A simple example is the need to translate the request and responses between two SOAP endpoints.  Such a use case could be implemented using two XSLT endpoints and an EIP StaticRoutingSlip.  However, there are some drawbacks, as the operation is lost in the process, and a static routing slip can not be used to process InOnly exchanges.
-{code:lang=xml}
+{pygmentize:lang=xml}
 <saxon:proxy service="test:proxy" endpoint="endpoint"
              resource="classpath:transform-in.xsl"
              outResource="classpath:transform-out.xsl"
@@ -62,7 +62,7 @@ One common use case is the need to trans
     <saxon:exchange-target service="test:echo" />
   </saxon:target>
 </saxon:proxy>
-{code}
+{pygmentize}
 
 h3. Mandatory properties
 Depending on the MEP, you have to set one or more XSL stylesheets to be used for converting the message payloads:
@@ -83,10 +83,10 @@ h3. Optional properties
 
 h2. Endpoint {{saxon:xquery}}
 The XQuery endpoint can be used to apply a selected XQuery to the input document.
-{code:lang=xml}
+{pygmentize:lang=xml}
 <saxon:xquery service="test:xquery" endpoint="endpoint"
               resource="classpath:query.xq" />
-{code}
+{pygmentize}
 
 h3. Mandatory properties
 You need to specify one of {{query}}, {{resource}} or {{expression}}
@@ -104,7 +104,7 @@ h3. Optional properties
 h2. Sample configurations
 h3. {{saxon:xslt}} : Dynamic stylesheet selection
 This endpoint configuration will dynamically load the XSL-T resource that is specified in the {{xslt.source}} property on the {{NormalizedMessage}}
-{code:lang=xml}
+{pygmentize:lang=xml}
 <saxon:xslt service="test:xslt-dynamic" endpoint="endpoint">
   <saxon:expression>
     <bean class="org.apache.servicemix.expression.PropertyExpression">
@@ -112,11 +112,11 @@ This endpoint configuration will dynamic
     </bean>
   </saxon:expression>
 </saxon:xslt>
-{code}
+{pygmentize}
 
 h3. {{saxon:xslt}} : Using parameters in the XSL-T stylesheet
 You can define a Map of parameters on the {{saxon:xslt}} endpoint.
-{code:lang=xml}
+{pygmentize:lang=xml}
 <saxon:xslt service="test:xslt-params" endpoint="endpoint"
             resource="classpath:parameter-test.xsl">
   <property name="parameters">
@@ -130,20 +130,20 @@ You can define a Map of parameters on th
     </map>
   </property>
 </saxon:xslt>
-{code}
+{pygmentize}
 
 In the XSL file, you can access the parameter values with {{<xsl:param/>}}.  You can also access headers on the NormalizedMessage (like e.g. {{org.apache.servicemix.file}}) with the same syntax.
-{code:lang=xml}
+{pygmentize:lang=xml}
 <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
   <xsl:param name="stringParam"/>
   <xsl:param name="integerParam"/>
   <xsl:param name="org.apache.servicemix.file" />
   ...
 </xsl:stylesheet>
-{code}
+{pygmentize}
 
 h3. {{saxon:xquery}} : Inlined XQuery and specific output configuration
-{code:lang=xml}
+{pygmentize:lang=xml}
 <saxon:xquery service="test:xquery-inline" endpoint="endpoint">
   <saxon:query>
     for $x in /bookstore/book
@@ -154,11 +154,11 @@ h3. {{saxon:xquery}} : Inlined XQuery an
     <saxon:property key="{http://saxon.sf.net/}wrap-result-sequence">yes</saxon:property>
   </saxon:outputProperties>
 </saxon:xquery>
-{code}
+{pygmentize}
 
 h3. {{saxon:xquery}} : Dynamic XQuery selection
 This endpoint configuration will dynamically load the XQuery resource that is specified in the {{xquery.source}} property on the {{NormalizedMessage}}
-{code:lang=xml}
+{pygmentize:lang=xml}
 <saxon:xquery service="test:xquery-dynamic" endpoint="endpoint">
   <saxon:expression>
     <bean class="org.apache.servicemix.expression.PropertyExpression">
@@ -166,5 +166,5 @@ This endpoint configuration will dynamic
     </bean>
   </saxon:expression>
 </saxon:xquery>
-{code}
+{pygmentize}
 

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-scripting.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-scripting.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-scripting.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-scripting.conf Mon Oct 18 07:43:57 2010
@@ -10,13 +10,13 @@ The component is currently shipping with
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/scripting/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:scripting="http://servicemix.apache.org/scripting/1.0">
 
   <!-- add scripting:endpoint here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-scripting component defines a single endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-snmp.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-snmp.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-snmp.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-snmp.conf Mon Oct 18 07:43:57 2010
@@ -5,13 +5,13 @@ The ServiceMix SNMP component provides s
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/snmp/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:snmp="http://servicemix.apache.org/snmp/1.0">
 
   <!-- add snmp:poller or snmp:sender definitions here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-snmp component defines two endpoint types:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-validation.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-validation.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-validation.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-validation.conf Mon Oct 18 07:43:57 2010
@@ -5,13 +5,13 @@ The ServiceMix Validation component prov
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/validation/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:scripting="http://servicemix.apache.org/validation/1.0">
 
   <!-- add validation:endpoint here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-validation component defines a single endpoint type:

Modified: servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-vfs.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-vfs.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-vfs.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/jbi/servicemix-vfs.conf Mon Oct 18 07:43:57 2010
@@ -5,13 +5,13 @@ The ServiceMix VFS component provides su
 
 h3. Namespace and xbean.xml
 The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/vfs/1.0}}.  This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:vfs="http://servicemix.apache.org/vfs/1.0">
 
   <!-- add vfs:poller or vfs:sender here -->
 
 </beans>
-{code}
+{pygmentize}
 
 h3. Endpoint types
 The servicemix-vfs component defines two endpoint types:

Modified: servicemix/documentation/trunk/src/main/webapp/nmr/nmr-camel.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/nmr/nmr-camel.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/nmr/nmr-camel.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/nmr/nmr-camel.conf Mon Oct 18 07:43:57 2010
@@ -6,7 +6,7 @@ h2. Installing
 
 In order to be able to use this component, you first have to define it in  your Spring configuration file ({{META-INF/spring/*.xml}}) by adding the following {{bean}}:
 
-{code}
+{pygmentize:lang=xml}
 <beans xmlns:osgi="http://www.springframework.org/schema/osgi" ... >
     ...
     <bean id="nmr" class="org.apache.servicemix.camel.nmr.ServiceMixComponent">
@@ -16,31 +16,31 @@ In order to be able to use this componen
     </bean>
     ...
 </beans>
-{code}
+{pygmentize}
 
 h2. NMR consumer and producer endpoints
 
 The following code:
 
-{code}
+{pygmentize:lang=java}
 from("nmr:MyServiceEndpoint")
-{code}
+{pygmentize}
 
 Automatically exposes a new endpoint to the bus with endpoint name {{MyServiceEndpoint}} (see [#URI-format]).
 
 When an NMR endpoint appears at the end of a route, for example:
 
-{code}
+{pygmentize:lang=java}
 to("nmr:MyServiceEndpoint")
-{code}
+{pygmentize}
 
 The messages sent by this producer endpoint are sent to the already deployed JBI endpoint.
 
 h2. URI format
 
-{code}
+{pygmentize:lang=text}
 nmr:endpointName
-{code}
+{pygmentize}
 
 h4. URI Options
 - *{{synchronous}}* (defaults to {{false}}) ::  When this is set to {{true}} on a consumer endpoint, an incoming, synchronous NMR Exchange will be handled on the sender's thread instead of being handled on a new thread of the NMR endpoint's thread pool |
@@ -48,7 +48,7 @@ h4. URI Options
 
 h3. Examples
 
-{code}
+{pygmentize:lang=java}
 from("nmr:MyServiceEndpoint")
 from("nmr:MyServiceEndpoint?synchronous=true").to("nmr:AnotherEndpoint")
-{code}
+{pygmentize}

Modified: servicemix/documentation/trunk/src/main/webapp/nmr/nmr-event-listeners.conf
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/nmr/nmr-event-listeners.conf?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/nmr/nmr-event-listeners.conf (original)
+++ servicemix/documentation/trunk/src/main/webapp/nmr/nmr-event-listeners.conf Mon Oct 18 07:43:57 2010
@@ -12,21 +12,21 @@ The {{EndpointListener}} defined two met
 - {{endpointRegistered}} is called whenever a new endpoint is registered with the NMR
 - {{endpointUnregistered}} is called whenever an existing endpoint is unregistered
 
-{code:lang=java}
+{pygmentize:lang=java}
 public interface EndpointListener {
     void endpointRegistered(InternalEndpoint endpoint);
     void endpointUnregistered(InternalEndpoint endpoint);
 }
-{code}
+{pygmentize}
 
 h3. Registering {{EndpointListener}}
 An {{EndpointListener}} can be registered directly with the NMR:
-{code:lang=java}
+{pygmentize:lang=java}
 nmr.getListenerRegistry().register(listener, null);
-{code}
+{pygmentize}
 
 The recommended way of registering an {{EndpointListener}} is by adding it to the OSGi Service Registry, e.g. using a Blueprint XML file:
-{code:lang=xml}
+{pygmentize:lang=xml}
 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
            xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
 
@@ -40,7 +40,7 @@ The recommended way of registering an {{
     </service>
 
 </blueprint>
-{code}
+{pygmentize}
 
 h3. Example
 An example of using an endpoint listener is shipped as part of the ServiceMix distribution.  It can be found in the {{examples/interceptors/endpoint}} directory.
@@ -54,22 +54,22 @@ The {{ExchangeListener}} defined two met
 - {{exchangeFailed}} is called when a failure occurs while handling an exchange
 
 
-{code:lang=java}
+{pygmentize:lang=java}
 public interface ExchangeListener {
     void exchangeSent(Exchange exchange);
     void exchangeDelivered(Exchange exchange);
     void exchangeFailed(Exchange exchange);
 }
-{code}
+{pygmentize}
 
 h3. Registering {{ExchangeListener}}
 An {{ExchangeListener}} can be registered directly with the NMR:
-{code:lang=java}
+{pygmentize:lang=java}
 nmr.getListenerRegistry().register(listener, null);
-{code}
+{pygmentize}
 
 The recommended way of registering an {{ExchangeListener}} is by adding it to the OSGi Service Registry, e.g. using a Blueprint XML file:
-{code:lang=xml}
+{pygmentize:lang=xml}
 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
            xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
 
@@ -83,7 +83,7 @@ The recommended way of registering an {{
     </service>
 
 </blueprint>
-{code}
+{pygmentize}
 
 h3. Example
 An example of using an exchange listener is shipped as part of the ServiceMix distribution.  It can be found in the {{examples/interceptors/exchange}} directory.
\ No newline at end of file

Modified: servicemix/documentation/trunk/src/main/webapp/theme/master.css
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/theme/master.css?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/theme/master.css (original)
+++ servicemix/documentation/trunk/src/main/webapp/theme/master.css Mon Oct 18 07:43:57 2010
@@ -47,4 +47,18 @@ div#body {
 
 div#page {
   border: solid thin black;
-}
\ No newline at end of file
+}
+
+div.highlight pre {
+  font-family: 'Courier', Courier, monospace;
+  font-size: 1em;
+  background-color: #eee;
+  margin-left: 1em;
+  margin-right: 1em;
+  padding: .5em;
+}
+
+tt {
+  font-family: 'Courier', Courier, monospace;
+  font-size: 1em;
+}

Modified: servicemix/documentation/trunk/src/main/webapp/theme/print.css
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/theme/print.css?rev=1023671&r1=1023670&r2=1023671&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/theme/print.css (original)
+++ servicemix/documentation/trunk/src/main/webapp/theme/print.css Mon Oct 18 07:43:57 2010
@@ -1,6 +1,8 @@
 @page {
   @top { content: "Apache ServiceMix ${servicemix.version}" }
   @bottom { content: counter(page) }
+  margin: 50pt 50pt 50pt 50pt;
+  size: a4;
 }
 
 @page:first {
@@ -31,6 +33,11 @@ div#titlepage div#subtitle {
   font-size: 2em;
 }
 
-div#main {
+div.highlight pre {
+  font-family: 'Courier', Courier, monospace;
+  font-size: 1em;
+  background-color: #eee;
+  margin-left: 1em;
+  margin-right: 1em;
+  padding: .5em;
 }
-

Added: servicemix/documentation/trunk/src/main/webapp/theme/pygmentize.css
URL: http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/theme/pygmentize.css?rev=1023671&view=auto
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/theme/pygmentize.css (added)
+++ servicemix/documentation/trunk/src/main/webapp/theme/pygmentize.css Mon Oct 18 07:43:57 2010
@@ -0,0 +1,48 @@
+.hll { background-color: #ffffcc }
+.c { color: #3F7F5F } /* Comment */
+.err { border: 1px solid #FF0000 } /* Error */
+.k { color: #7F0055; font-weight: bold } /* Keyword */
+.o { color: #000000 } /* Operator */
+.cm { color: #3F5FBF } /* Comment.Multiline */
+.cp { color: #606060; font-style: italic } /* Comment.Preproc */
+.c1 { color: #3F7F5F } /* Comment.Single */
+.cs { color: #3F7F5F } /* Comment.Special */
+.ge { font-style: italic } /* Generic.Emph */
+.gh { font-weight: bold } /* Generic.Heading */
+.gp { font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { font-weight: bold } /* Generic.Subheading */
+.kc { color: #7F0055; font-weight: bold } /* Keyword.Constant */
+.kd { color: #7F0055; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #7F0055; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #f00000; font-weight: bold } /* Keyword.Pseudo */
+.kr { color: #7F0055; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #7F0055; font-weight: bold } /* Keyword.Type */
+.m { color: #000000 } /* Literal.Number */
+.s { color: #2A00FF } /* Literal.String */
+.na { color: #000000 } /* Name.Attribute */
+.nc { color: #000000 } /* Name.Class */
+.nd { color: #646464 } /* Name.Decorator */
+.ni { color: #000000 } /* Name.Entity */
+.ne { color: #000000 } /* Name.Exception */
+.nf { color: #000000 } /* Name.Function */
+.nn { color: #000000 } /* Name.Namespace */
+.nt { color: #7F0055; font-weight: bold } /* Name.Tag */
+.ow { color: #000000 } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mf { color: #000000 } /* Literal.Number.Float */
+.mh { color: #000000 } /* Literal.Number.Hex */
+.mi { color: #000000 } /* Literal.Number.Integer */
+.mo { color: #000000 } /* Literal.Number.Oct */
+.sb { color: #2A00FF } /* Literal.String.Backtick */
+.sc { color: #2A00FF } /* Literal.String.Char */
+.sd { color: #2A00FF } /* Literal.String.Doc */
+.s2 { color: #2A00FF } /* Literal.String.Double */
+.se { color: #2A00FF } /* Literal.String.Escape */
+.sh { color: #2A00FF } /* Literal.String.Heredoc */
+.si { color: #2A00FF } /* Literal.String.Interpol */
+.sx { color: #2A00FF } /* Literal.String.Other */
+.sr { color: #2A00FF } /* Literal.String.Regex */
+.s1 { color: #2A00FF } /* Literal.String.Single */
+.ss { color: #2A00FF } /* Literal.String.Symbol */
+.il { color: #000000 } /* Literal.Number.Integer.Long */