[ 
https://issues.apache.org/jira/browse/DOXIA-539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15115101#comment-15115101
 ] 

Robin Roos edited comment on DOXIA-539 at 1/25/16 12:07 PM:
------------------------------------------------------------

The colour syntax highlighting IS working.  The highlighting is as per default 
style.

The following block overrides the default language for the block:

h3. Examples

{code}
{code:language=none}
|Capture FX Trades|TEST_00003|Official|2015-12-01 08:00:00|
|productType|currencyPair|negotiatedCurrency|quantity|spotDate|forwardDate|spotRate|forwardRate|traderName|salesPerson|counterParty|action|AGENT|TRADE_SOURCE|tradeId?|tradeStatus?|
|FX|EUR_USD|EUR|1000000|2015-12-03||1.30||HELLEAN|ROBIN|BARC22|NEW|MYAGENT|MW|||
|FXForward|EUR_USD|EUR|1000000|2015-12-03|2015-12-03|1.30|1.32|HELLEAN|ROBIN|BARC22|NEW|MYAGENT|MW|||
|FXSwap|EUR_USD|EUR|1000000|2015-12-03|2015-12-04|1.30|1.32|HELLEAN|ROBIN|BARC22|NEW|MYAGENT|MW|||
{code}
{code}

The output is still highlighted, according to the default style.

So it would appear that the only omission in DOXIA is that it appear to strip 
out the language attribute of the code block.


was (Author: robinroos2):
The colour syntax highlighting IS working.  The highlighting is as per default 
style.

The following block overrides the default language for the block:

h3. Examples

{code}
\{code:language=none}
|Capture FX Trades|TEST_00003|Official|2015-12-01 08:00:00|
|productType|currencyPair|negotiatedCurrency|quantity|spotDate|forwardDate|spotRate|forwardRate|traderName|salesPerson|counterParty|action|AGENT|TRADE_SOURCE|tradeId?|tradeStatus?|
|FX|EUR_USD|EUR|1000000|2015-12-03||1.30||HELLEAN|ROBIN|BARC22|NEW|MYAGENT|MW|||
|FXForward|EUR_USD|EUR|1000000|2015-12-03|2015-12-03|1.30|1.32|HELLEAN|ROBIN|BARC22|NEW|MYAGENT|MW|||
|FXSwap|EUR_USD|EUR|1000000|2015-12-03|2015-12-04|1.30|1.32|HELLEAN|ROBIN|BARC22|NEW|MYAGENT|MW|||
\{code}
{code}

The output is still highlighted, according to the default style.

So it would appear that the only omission in DOXIA is that it appear to strip 
out the language attribute of the code block.

> language element of code block is ignored
> -----------------------------------------
>
>                 Key: DOXIA-539
>                 URL: https://issues.apache.org/jira/browse/DOXIA-539
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Module - Confluence
>            Reporter: Robin Roos
>
> In Confluence markup, the "code" block takes an attribute "language".  The 
> default language is java.
> It appears that doxia-module-confluence ignores attempts to set the language 
> on a code block (e.g. code:language=none) and always uses Java colour 
> highlighting.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to