测试显示代码的插件WP-Syntax

1
2
3
4
5
public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}
18
19
20
21
22
class Example
  def example(arg1)
    return "Hello: " + arg1.to_s
  end
end

该插件的下载及文档地址:https://wordpress.org/plugins/wp-syntax/
根据文档编写以上Demo

手动输入文本内容编写一个段落时,只有按SHIFT+回车来
换行才不会产生新段落