Laurent Godard a écrit :
> 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.
> 

Great, this is a really good practice to add sample XML contributions to XPs and
the syntax hightlighting makes it even user friendlier.

-- 
Olivier

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to