Fork me on GitHub
Attention: This component is still under progress and experimental.

b:prettyprint An embeddable component that makes source-code snippets prettier.

See Google documentation for detailed information.

Tag attributes
component
            <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:b="http://butterfaces.org/components">
<h:head />
<body>
   <form>
      Hello World!
   </form>
</body>
</html>
        
                            <!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://xmlns.jcp.org/jsf/html" 
      xmlns:f="http://xmlns.jcp.org/jsf/core" 
      xmlns:b="http://butterfaces.org/components"> 
<h:head /> 
<body>

        <b:prettyprint id="pretty"
                       language="lang-html"
                       rendered="true">
           #{myBean.htmlContent}
        </b:prettyprint>

</body> 
</html>