Mercurial > zeropaste
view app/assets/javascripts/zp.formatter.js.coffee @ 364:dd5a107bff3d
Remove web servers from gemfile.
Please install it manually through gem or whatever.
author | edogawaconan <me@myconan.net> |
---|---|
date | Sat, 14 Feb 2015 01:22:29 +0900 |
parents | 55287d8a5a04 |
children |
line wrap: on
line source
#= require config/marked #= require config/prettify window.zp.formatter = raw: -> $("#pl pre").text() links: -> $("#paste-mode a") current: -> $("#paste-mode .active a").attr("href").slice(1) markdown: -> $("#md div") .html(marked @raw()) .find("pre").addClass "prettyprint" .end() .find("a").prop "rel", "nofollow" highlight: -> $("#hl pre").text @raw() prettyPrint() init: -> @markdown() @highlight()