Wiki でシンタックス ハイライトを使用する

You can highlight snippets of text on your Bitbucket Cloud wiki pages. We use the excellent Pygments library to style our code.

コード ブロックをフォーマットするために使用できる構文は、Wiki に選択した言語に応じて異なります。言語を変更するには、Wiki ページの右上で [編集] をクリックし、[言語] ドロップダウンを見つけます。

次に上記のように、コードを整形するために適切なシンタックスを使用します。

マークダウン

Creole

```python def wiki_rocks(text): formatter = lambda t: "funky"+t return formatter(text) ```

シバンにトリプル バッククォートを使用した言語の指定はサポートされなくなりました。代わりに、上記の例に示すように、言語にトリプル バッククォートを使用します。

{{{ #!python def wiki_rocks(text): formatter = lambda t: "funky"+t return formatter(text) }}}

Textile

reStructuredText

bc. #!python def wiki_rocks(text): formatter = lambda t: "funky"+t return formatter(text)
.. sourcecode :: python def wiki_rocks(text): formatter = lambda t: "funky"+t return formatter(text)

For details on the various languages, see their corresponding documentation on the web. See the library of Pygment lexers. Bitbucket Cloud supports the short name or the mimetype of anything in that library.

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。