Hacker News new | ask | show | jobs
by geophile 969 days ago
I'm responsible.

I need to revise those, and images seemed like the way to get colorization right. I'll try to figure out how to do it with code blocks, it will hopefully be more maintainable. Cutting/pasting images is ridiculous.

4 comments

I suspect Pygments will be to your liking.

https://pygments.org/

Thank you for all the suggestions for code formatting/colorizing. The problem is that I'm hosting on wix. Posting images sucks, as already pointed out. How do I get formatted, console-like text on wix? I'm not seeing how these tools solve that problem.
you could try Carbon:

https://carbon.now.sh/

Would highlight.js do what you need?