listmonk icon indicating copy to clipboard operation
listmonk copied to clipboard

Replace code flask with a more active alternative

Open sweetppro opened this issue 1 year ago • 2 comments

Code flask was last updated 5yrs ago, and can be slow on large inputs.

https://github.com/WebCoder49/code-input seems to be quite active with the last release only 3 months ago. The setup looks similar to code flask and it also utilises prism.js or highlight.js for syntax highlighting.

sweetppro avatar Oct 05 '24 17:10 sweetppro

Was thinking about this the other day. CC @Bowrna, since you've a CodeFlask related PR in the works.

knadh avatar Oct 06 '24 06:10 knadh

Yes I can check this.

Bowrna avatar Oct 06 '24 15:10 Bowrna

Is there any information on when code flask will be replaced? I have users complaining about problems related to upstream issue https://github.com/kazzkiq/CodeFlask/issues/72. A fix should be relatively simple and I'm willing to give it a try, but it wouldn't be of any use if an alternative is ready for the next release.

remcovanhooff avatar Dec 13 '24 16:12 remcovanhooff

hello @Remceau i was working on this PR https://github.com/knadh/listmonk/pull/2139 that replaces code flask with code-input. Due to health issues, I didn't try closing the PR as promised. I will try closing this.

Bowrna avatar Dec 13 '24 18:12 Bowrna

Ended up replacing CodeFlask with CodeMirror.

Ref: https://github.com/knadh/listmonk/commit/ba5e77b868370ba8c0d263b845583b739771e2ea

knadh avatar Apr 20 '25 14:04 knadh

Looking forward to a new beta with this patch applied 😊

sweetppro avatar Apr 20 '25 15:04 sweetppro

@knadh thanks, Im running v5.beta.2 and CodeMirror is much more performant and much easier to add custom styles

sweetppro avatar Apr 21 '25 03:04 sweetppro