然後應該沒有三 OuO
一的方法比較適合片段的程式碼或指令 吧
要貼大篇幅的程式碼我提供更好的方法,也更簡單
就是利用 GitHub 的 Gist 功能
有 secret 跟 public 兩個選項
設成 secret 也可以透過連結觀看喔,所以我通常選 secret
找到嵌入碼並複製
進入 HTML 編輯
成果如下,還會顯示行數 >////<
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
cout << "Hello World" << endl; | |
return 0; | |
} |
編輯跟刪除也都很容易喔