Couscous icon indicating copy to clipboard operation
Couscous copied to clipboard

improvement : Highlight.php ?

Open ncou opened this issue 4 years ago • 2 comments

Hi,

Nice piece of code. I have just tested this tool but it seems to do the work. Simple and powerfull.

Just my 2 cents opinion, I think using the highlighter "https://github.com/scrivo/highlight.php" could be a fine plugin to Couscous, the idea is that most of the site using coucous should also use an highlighter (mostly in javascript to apply the highlight on the fly) so a plugin to enable the highlight during the conversion of markdow to html file could be a plus. And the user could simply add the highlight.js CSS file.

What do you think ?

ncou avatar Dec 23 '20 17:12 ncou

Why not, but I'm afraid this would add some complexity and some more dependencies for something that can be solved in JS.

mnapoli avatar Jan 15 '21 10:01 mnapoli

Yes it could add some complexity, and the JS way work fine. I just find the result a bit slow while doing the highlighting on-the-fly.

ncou avatar Jan 15 '21 16:01 ncou