"梓"テキストフォーマット

"梓" のテキストフォーマットルールは基本的に Trac の Wiki と同じです。ですが,記述できる内容は現時点では 100% 同等という訳ではありません。

特に,マクロや Wiki プロセッサーについては Trac に標準で備わっている機能の一部のみしか利用できません。*今後のバージョンアップで対応予定です

"梓" ドキュメントを Trac Wiki に,または Trac Wiki データを "梓" ドキュメントにそれぞれ変換した場合,必ずしも意図したとおりに動作しない場合がありますので,ご注意ください。

フォントスタイル

Example:

 * '''bold'''
 * ''italic''
 * '''''bold italic'''''
 * __underline__
 * {{{monospace}}} or `monospace`
 * ~~strike-through~~
 * ^superscript^
 * ,,subscript,,

Display:

見出し

半角等号記号("=")で囲まれたテキスト行は見出しとして処理されます。"=" の数が見出しのレベルを表します。レベルは 1 ~ 5 まで指定できます。

Example:

= 見出し1 =
== 見出し2 ==
=== 見出し3 ===
==== 見出し''4'' ====
===== 見出し__5__ =====

Display:

見出し1

見出し2

見出し3

見出し
見出し

開始の "=" シーケンスと,終了の "=" シーケンスは,同じ数である必要があります。

"=" と見出しテキストの間は 1 個以上の半角スペースによって区切られます。

見出しにアンカーを設定する場合は,行末に「#<アンカー名>」の形式でアンカー名を指定します。

Example:

===== アンカー付き見出し ===== #headingWithAnchor

Display:

アンカー付き見出し

段落

//TODO: write me!

リスト

//TODO: write me!

Example:

 * Item 1
   * Item 1.1
 * Item 2

 1. Item 1
   1. Item 1.1
 1. Item 2

Display:

  1. Item 1
    1. Item 1.1
  2. Item 2

定義リスト

//TODO: write me!

Example:

 llama::
   some kind of mammal, with hair
  * inner list item1
  * inner list item2
 ppython::
   some kind of reptile, without hair
   (can you spot the typo?)
{{{
inner preformatted text
}}}
 misc::
   All your base are belong to us ;-)

Display:

llama
some kind of mammal, with hair
  • inner list item1
  • inner list item2
ppython
some kind of reptile, without hair(can you spot the typo?)
inner preformatted text
misc
All your base are belong to us ;-)

整形済みテキスト

//TODO: write me!

Example:

{{{
  def HelloWorld():
      print "Hello World"
}}}

Display:

  def HelloWorld():
      print "Hello World"

HTML

//TODO: write me!

Example:

{{{
#!html
<table border="1" style="witdh:auto">
  <tr>
    <th>header1</th>
    <th>header2</th>
    <th>header3</th>
  </tr>
  <tr>
    <td>cell11</td>
    <td>cell12</td>
    <td>cell13</td>
  </tr>
  <tr>
    <td>cell21</td>
    <td>cell22</td>
    <td>cell23</td>
  </tr>
</table>
}}}

Display:

header1 header2 header3
cell11 cell12 cell13
cell21 cell22 cell23

引用ブロック

//TODO: write me!

Example:

  This text is a quote from someone else.

Display:

This text is a quote from someone else.

表(テーブル)は「!」で始めます。以後,セルは「!」で区切ります。

Example:

||           || '''列A''' || '''列B''' || '''列C''' ||
|| '''行-1''' ||     A1    ||     B1    ||     C1   ||
|| '''行-2''' ||     A2    ||     B2    ||     C2   ||
|| '''行-3''' ||     A3    ||     B3    ||     C3   ||

Display:

列A 列B 列C
行-1 A1 B1 C1
行-2 A2 B2 C2
行-3 A3 B3 C3

//TODO: write me!

Example:

 * [textformatting.html]
 * [http://www.tsukuba-bunko.org/ つくば文庫]
 * [http://softlab.tsukuba-bunko.org/ "[TBA-Softlab]"]
 * ![tsukuba-bunkoCA]

Display:

画像

//TODO: write me!

Example:

[[Image(images/banner-softlab.png)]]

Display:

その他

改行

改行はマクロ [[BR]] によって出力されます。

Example:

line1[[BR]]line2

Display:

line1
line2

水平線

4個以上のダッシュ記号("-")を並べると水平線が引かれます。

Example:

----

Display:


ページタイトル

ページタイトルはマクロ [[PageTitle]] で指定します。

Example:

[[PageTitle("梓"テキストフォーマット)]]

Display: (*このページのタイトルを参照してください。)


*注意!: PageTitle マクロは "梓" での拡張です。オリジナルの Trac Wiki には (今のところ) ありません。

コメント

  //TODO: write me!

Example:

{{{
#!comment
コメント
}}}

Display: (*何も表示されません)