示例页面

来自三三百科
跳转到导航 跳转到搜索

代码片段

def hello_world():
    print("Hello World!")
#include <bits/stdc++.h>
using namespace std;
int main()
{
    cout << "Hello World!";
    return 0;
}
  • lang: 指定语言(如 php, python, javascript, cpp, html, css 等)。
  • line: 开启行号显示。
  • start: 指定起始行号(例如 start="50")。
  • highlight: 高亮特定行(例如 highlight="3-5")。
  • inline: 在行内显示高亮代码(适合在段落中插入短代码)。

数学公式

[math]\displaystyle{ E=mc^2 }[/math]

[math]\displaystyle{ \sum_{i=1}^n i = \frac{n(n+1)}{2} }[/math]