Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

AsciiDoc literal blocks, listing blocks and code blocks are converted to formatted blocks in Confluence.

A title can be set for each type of block. The title is rendered as the title of the Confluence panel.

Literal Block

Literal blocks are converted as pre-formatted text.

...

Listing blocks are converted using the "noformat" macro.

No Format
.Title of the listing block
----
this is a listing block
----
No Format
titleTitle of the listing block
this is a listing block

Source Block

Source blocks are converted using the "code" macro. Only languages supported by the Code Block Macro can be used: actionscript3, applescript, bash, c#, cpp, css, coldfusion, delphi, diff, erl, groovy, xml, java, jfx, js, php, perl, text, powershell, py, ruby, sql, sass, scala, vb, yml (since Confluence 6.7 only)

No Format
[source,java]
----
public class MyCode {
    // comment
}
----

...