prism.js
Syntax hightlighting with Prism to Ghost
Installing Prism
- Visit http:///prismjs.com/download.html
- Pick languages and plugins that you want to have.
- Scroll down and download js and css.
- After that copy these files into your theme. In case you use default theme, it should be content/themes/casper/assets/js for the JavaScript file and content/themes/casper/assets/css for the style sheet file.
- Modify content/themes/casper/default.hbs by adding following tags after respective comments and once you are done, upload your Ghost installation to your server.
{{! Styles'n'Scripts }}
<link rel="stylesheet" type="text/css" href="{{asset ""css/prism.css"}}"/>
{{!-- jQuery + Fitvids, which makes all video embeds responsive --}}
<script type="text/javascript" src="{{asset "js//prism.js"}}"></script>
Use
'''javascript
'''
설치 (다운로드) 옵션
- Visual Basic + VBA
- python
- php
- bash + Shell
- c / c# / c++
- sql
- nginx
- Plugin : Line Number
- Plugin : Show Language