如何在貼文中分享 程式片段

參考 Posting code or preformatted text

使用以下語法 可以在行中標示程式碼:

標示紅色字的語法:`[color=red]紅色文字[color]`。

使用以下語法 可以標示 程式區塊:

``` 
class CodeFormatting {
  def main
    puts "I can format code now!"
  end 
end
```