...
Anchor |
---|
| _line_numbers |
---|
| _line_numbers |
---|
|
Line Numbers
Line numbers for source code blocks can be enabled either using the :source-linenums-option:
attribute globally for all source blocks on the page, or per source block using the linenums
option:
...
Code Block |
---|
language | java |
---|
firstline | 4 |
---|
linenumbers | true |
---|
|
public class MyCode {
// comment
} |
Anchor |
---|
| _collapsed_source_blocks |
---|
| _collapsed_source_blocks |
---|
|
Collapsed Source BlocksCollapsing of source blocks is supported via the custom collapse
option:
No Format |
---|
[source,java,title="Collapsed Source Block",collapse=true]
----
public class MyCode {
// long source block that should not be visible by default
}
---- |
Code Block |
---|
language | java |
---|
title | Collapsed Source Block |
---|
collapse | true |
---|
|
public class MyCode {
// long source block that should not be visible by default
} |
Info |
---|
Collapsed source blocks are currently not supported by AsciiDoc directly, thus this is a non-standard feature only supported by the Confluence Publisher. |
Anchor |
---|
| _source_highlighting |
---|
| _source_highlighting |
---|
|
Source Highlighting
...