This page is a snippet

For full information, see:

snippet

 

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:

  • DJango
  • Emacs
  • FadeToGrey
  • Midnight
  • RDark
  • Eclipse
  • Confluence (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
  • actionscript3
  • bash
  • csharp — that is, C#
  • coldfusion
  • cpp — that is, C++
  • css
  • delphi
  • diff
  • erlang
  • groovy
  • java
  • javafx
  • javascript
  • perl
  • php
  • powershell
  • python
  • ruby
  • scala
  • sql
  • vb — that is, Visual Basic
  • html/xml
firstlineいいえ1When 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.

 

 

 

 

 

  • ラベルなし