Hi

I implemented a first version of code coloration using Pygments for nxPointDoc pages

eg.
http://public.dev.nuxeo.com/~lgodard/nxpointdoc/org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.html#extension_point_mimetype

For code-coloring, you need to use <code>...</code> tags
To specify the language, use <code language="xxx">
(the <pre> behaviour is unchanged)

The language list supported by Pygments is there http://pygments.org/docs/lexers/
(look at Aliases entries)

xml, java are the most probably to be used here and it works
the default for nxpointdoc is xml

The color have not been re-worked yet and may change.

Feel free to comment
As usual, i'm open to any comments and suggestion

Laurent


--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management >> http://www.nuxeo.com - http://www.nuxeo.org
Livre "Programmation OpenOffice.org", Eyrolles 2004-2006
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to