hashobject / perun

Programmable static site generator built with Clojure and Boot (HELP NEEDED!)
https://perun.io
Eclipse Public License 1.0
350 stars 38 forks source link

New plugin: highlight code #32

Closed Deraen closed 6 years ago

Deraen commented 9 years ago

Might require splitting the render if half so hiccup can be modified. Or could maybe work on existing html. (#30).

But first we need highlighting lib usable from Boot. There doesn't seem to be any maintained Java implementations. Jygments looks the most useful but it is not released on maven.

Instead we could use a pod with Jython and use Pygments (a python lib). Example https://github.com/tailrecursion/boot-hoplon/blob/master/src/tailrecursion/boot_hoplon/pygments.clj.

podviaznikov commented 9 years ago

I used to have library (https://github.com/hashobject/pygmenter. ) which is very similar to code from https://github.com/tailrecursion/boot-hoplon/blob/master/src/tailrecursion/boot_hoplon/pygments.clj. But example from tailrecursion has more options (and I didn't maintained mine version much).

I agree that having nice highlighting library is good. Also agree that highlight plugin would be very useful.