AnsweredAssumed Answered

Pretty Preview transformer for source code?

Question asked by nickburch on Jan 28, 2013
Latest reply on Jan 30, 2013 by nickburch
Does anyone know of an examples of content transformers for giving pretty previews in Share for source code?

Currently, some source code types are recognised by Alfresco as plain text (eg Java files), and you get a basic Share preview via OpenOffice and PDF2SWF. Other source code types are correctly recognised by their real mime type (not just shoved into text/plain), but with the disadvantage that they're then not previewable in Share…

Are there any existing examples to crib off of using one of the source code highlighting / prettifying tools to produce nicely formatted + coloured previews of source code formats for Share? I'd like to avoid reinventing the wheel if possible!

Outcomes