Example in HTML (flickr slideshow snippet)
<object
type="text/html"
data="http://www.flickr.com/slideShow/index.gne
? user_id=
56167317@N00
& tags=
cat-hack"
width="500"
height="500">
</object>
Highlighting is done on the client side using Highlight.js, no code changed in Panda!!
Since it all happens in the browser, updates are made in panda-tempalte.
Styling is configured at config/theme/blueprint.txt, just change highlight/default to any css inside theme/blueprint/css/highlight.
Note: Only HTML syntax is enabled by default for performance, specified inside public/theme/blueprint/js/custom.js:
// syntax highlighting
// to enable all:
// hljs.initHighlightingOnLoad();
// to enable selected:
// hljs.initHighlightingOnLoad("html", "ruby", "python");
document.write(
'<script>hljs.initHighlightingOnLoad("html");</script>'
);