It's easy to use prism in Ghost, just put 2 files into ghost theme:
~\assets\css\prisum.css
~\assets\css\prism.css
You can download these 2 files from http://prismjs.com/download.html, I have choose all languages and some of the plugins
HMTL
第三行高亮,行号从101行开始的C#代码
public void GetString()
{
return string.Empty;
}
Bash命令和输出,第一行高亮
ps -aux | grep 80
nginx 27948 0.0 0.1 53060 6436 ?
nginx 28016 0.0 0.1 53056 6432 ?
nginx 28043 0.0 0.1 53060 6436 ?
~~nginx 28071 0.0 0.1 53056 6400 ?~~
SQL
Display like this:
SELECT * FROM sys.tables WHERE OBJECT_ID = OBJECT_ID("user")
Tree
root_folder/
|-- a first folder/
| |-- holidays.mov
| |-- javascript-file.js
| `-- some_picture.jpg
|-- documents/
| |-- spreadsheet.xls
| |-- manual.pdf
| |-- document.docx
| `-- presentation.ppt
| `-- test
|-- empty_folder/
|-- going deeper/
| |-- going deeper/
| | `-- going deeper/
| | `-- going deeper/
| | `-- .secret_file
| |-- style.css
| `-- index.html
|-- music and movies/
| |-- great-song.mp3
| |-- S01E02.new.episode.avi
| |-- S01E02.new.episode.nfo
| `-- track 1.cda
|-- .gitignore
|-- .htaccess
|-- .npmignore
|-- archive 1.zip
|-- archive 2.tar.gz
|-- logo.svg
`-- README.md
@@ -4,6 +4,5 @@
- let foo = bar.baz([1, 2, 3]);
- foo = foo + 1;
+ const foo = bar.baz([1, 2, 3]) + 1;
console.log(`foo: ${foo}`);