Macro name: code Macro body: Accepts plain text. | パラメーター名 | 必須 | 既定 | パラメーターの説明と指定可能な値 |
|---|
title | いいえ | (なし) | Adds a title to the code macro box. | theme | いいえ | Confluence | Specifies the colour scheme used for displaying your code. Many of these themes are based on the default colour schemes of popular integrated development environments (IDEs). The default theme is Confluence (also known as Default), which is typically black and coloured text on a blank background. Available themes: DJangoEmacsFadeToGreyMidnightRDarkEclipseConfluence (same as default)
| linenumbers | いいえ | false | If true, a line number will be shown to the left of each line of code. Numbering is incremented by 1. If false, no line numbers are shown. | language | いいえ | java | Specifies the language (or environment) for syntax highlighting. - (none) — that is, no syntax highlighting
actionscript3bashcsharp — that is, C#coldfusioncpp — that is, C++cssdelphidifferlanggroovyjavajavafxjavascriptperlphppowershellpythonrubyscalasqlvb — that is, Visual Basichtml/xml
| firstline | いいえ | 1 | When linenumbers is true, this value defines the number of the first line of code. | collapse | いいえ | false | If true, the code macro's content will be collapsed upon visiting or refreshing the Confluence page. Clicking the 'expand source' link allows you to view the content. If false, the code macro's content is always displayed in full. |
|