[
https://jira.codehaus.org/browse/DOXIA-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=324075#comment-324075
]
Robert Scholte commented on DOXIA-488:
--------------------------------------
Charles, it would be nice if you could provide it as a patch(to see the real
differences) and with a unittest(there are enough examples within the module).
> Support optional langage for syntax highlighting
> ------------------------------------------------
>
> Key: DOXIA-488
> URL: https://jira.codehaus.org/browse/DOXIA-488
> Project: Maven Doxia
> Issue Type: Bug
> Components: Module - Markdown
> Affects Versions: 1.3
> Reporter: Charles Salmon
> Priority: Trivial
>
> pegdown supports the way to specify the langage for a code block:
> {noformat}
> ~~~langage
> code
> ~~~
> {noformat}
> Following the resolution of DOXIA-484 (pegdown dependency update), we should
> make sure the overrided {code:java}public void visit( VerbatimNode node )
> {code} of the {code:java}MarkdownToDoxiaHtmlSerializer{code} includes the
> support of langage option, ie:
> {code:java}
> /**
> * {@inheritDoc}
> */
> @Override
> public void visit( VerbatimNode node )
> {
> printer.println().print("<div class=\"source\"><pre>");
> if (!StringUtils.isEmpty(node.getType())) {
> printAttribute("class", node.getType());
> }
> printer.print(">");
> ...
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira