cyjake / darko

🐰A Node.js port of Jekyll
82 stars 16 forks source link

pygments alternatives? #2

Open cyjake opened 10 years ago

cyjake commented 10 years ago

Darko uses highlight.js for syntax highlighting currently. The generated result is not compatible with the result of pygments though. Therefore those styles written for pygments won't be usable if some one is switching from Jekyll to Darko.

There are pygments compatible Node modules available, such as peacock. But it only highlights syntax of JavaScript.

Any thoughts?

brianmacdonald commented 9 years ago

Have you looked into using the nodejs pygments wrapper?

cyjake commented 9 years ago

That'll require a Python installation and some stuff like pip install pygments, right?

cyjake commented 9 years ago

Maybe darko should support the option of specifying syntax highlighter like current version of Jekyll. Something like highlighter: highlight.js or highlighter: pygments in _config.yml. If pygments is preferred and the user has no problem installing it, then highlighter: pygments will suffice.

cyjake commented 6 years ago

Found an alternative: https://github.com/thlorenz/peacock