... | ... | @@ -13,7 +13,15 @@ Run "go build". This should be the easiest step assuming Step 3 went off without |
|
|
6. Ghostbin uses Pygments to syntax-highlight pastes. Pygments can be downloaded from [its project page](http://pygments.org/download/). Keep in mind the path to `pygmentize` as you install it.
|
|
|
- Your local Linux distributor may have a pygments package. If you install the aforementioned package, the path to `pygmentize` will probably be something like `/usr/bin/pygmentize`.
|
|
|
- Update Ghostbin's `languages.yml` to reflect the path to `pygmentize`.
|
|
|
7. Pygments is great, but the highlighted code it generates will be decidedly free of colour. To fix that, we need a stylesheet. You can generate one with `pygmentize -f html -S <theme> > public/css/pygments.css`, or you can grab [the official Ghostbin stylesheet](/css/pygments.css) and place it in `public/css`.
|
|
|
7. Pygments is great, but the highlighted code it generates will be decidedly free of colour. To fix that, we need a stylesheet. You can generate one with `pygmentize -f html -S $STYLE > public/css/theme-pygments.css`.
|
|
|
Pygments includes the following styles by default:
|
|
|
```
|
|
|
['monokai', 'manni', 'rrt', 'perldoc', 'borland',
|
|
|
'colorful', 'default', 'murphy', 'vs', 'trac',
|
|
|
'tango', 'fruity', 'autumn', 'bw', 'emacs', 'vim',
|
|
|
'pastie', 'friendly', 'native']
|
|
|
```
|
|
|
|
|
|
8. Presuming that everything was done correctly, you should be able to run `./ghostbin` in your Ghostbin directory now! Ghostbin will by default bind to port 8080, and you can access this on the host machine by visiting [http://localhost:8080](http://localhost:8080).
|
|
|
|
|
|
That's should be all! Let us know over on [Github](https://github.com/DHowett/ghostbin) if you run into any further issues and we'll do our best to help out. |