doc: update README

This commit is contained in:
Aloxaf 2020-11-22 00:12:37 +08:00
parent 2b70a8ca47
commit c1abc51814
No known key found for this signature in database
GPG Key ID: A07920B86500DE6C
1 changed files with 10 additions and 6 deletions

View File

@ -61,9 +61,9 @@ brew install silicon
### Ubuntu
```bash
sudo apt install expat
sudo apt install libxml2-dev
sudo apt install pkg-config libasound2-dev libssl-dev cmake libfreetype6-dev libexpat1-dev libxcb-composite0-dev
sudo apt install expat
sudo apt install libxml2-dev
sudo apt install pkg-config libasound2-dev libssl-dev cmake libfreetype6-dev libexpat1-dev libxcb-composite0-dev
```
### Arch Linux
@ -80,16 +80,20 @@ Read code from file
silicon main.rs -o main.png
```
Read code from clipboard, and copy the result image to clipboard(`--to-clipboard` is only available on Linux)
Read code from clipboard, and copy the result image to clipboard
```bash
silicon --from-clipboard -l rs --to-clipboard
```
Use multiple fonts
Specify a fallback font list and their size
```bash
silicon main.rs -o main.png -f 'Hack; SimSun'
silicon -o main.png -l bash -f 'Hack; SimSun=31; code2000' <<EOF
echo Hello
echo 你好
echo ∠( ᐛ 」∠)_
EOF
```
Highlight specified line