文字显示测试

秦风·蒹葭
蒹葭苍苍,白露为霜。所谓伊人,在水一方。溯洄从之,道阻且长。溯游从之,宛在水中央。
蒹葭萋萋,白露未晞。所谓伊人,在水之湄。溯洄从之,道阻且跻。溯游从之,宛在水中坻。
蒹葭采采,白露未已。所谓伊人,在水之涘。溯洄从之,道阻且右。溯游从之,宛在水中沚。

https://docs.python.org/zh-cn/3/tutorial/index.html

Python 是一门易于学习、功能强大的编程语言。它提供了高效的高级数据结构,还能简单有效地面向对象编程。Python 优雅的语法和动态类型以及解释型语言的本质,使它成为多数平台上写脚本和快速开发应用的理想语言。

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.

代码高亮测试

Make sure all the code blocks highlighted correctly. All the code samples are come from the demo of https://highlightjs.org

代码有修改。

Python

@requires_authorization(roles=["ADMIN"])
def somefunc(param1='', 中文变量2=0):
    r'''A docstring 中文注释'''
    if param1 > 中文变量2:
        print 'Gre\'ater'
    return (中文变量2 - param1 + 1 + 0b10l) or None

class SomeClass:
    pass

>>> message = '''interpreter
... prompt'''

Java

/**
 * @author John Smith <john.smith@example.com>
*/
package l2f.gameserver.model;

public abstract strictfp class L2Char extends L2Object {
  public static final Short ERROR = 0x0001;

  public void moveTo(int x, int y, int z) {
    // English comments 中文注释
    _ai = null;
    log("Should not be called");
    log("This is a longggggggggggggggggggggggggggggggg gggggggggggggggggggggggggggggggggggggggg gggggggggggggggggggggggggggggggggggggggggg ggggggggggggggggggggggggggggggggggg ggggggggggggggggggggggggg String.");
    if (1 > 5) { // wtf!?
      return;
    }
  }
}

Emoji

😀😁😂😂😂😂