(Legacy)
安裝#
- 去 https://extensions.libreoffice.org/en/extensions/show/code-highlighter ↗ 下載最新的外掛
- 把檔名前面的前綴刪掉,
例如:
ea4db15f_codehighlighter.oxt
->codehighlighter.oxt
- 安裝相依性套件
sudo apt install libreoffice-script-provider-python python3-pip
sudo pip3 install pygments
bash- 安裝外掛
工具 > 擴充套件管理員 > 加入 > 選擇你的檔案
使用#
- 插入文字方塊
插入 > 文字方塊
- 貼上程式碼
- 選擇文字方塊,不是文字(按文字方塊的邊邊)
- format
工具 > highlight code > 選得語言、style