CodeIgniter Forums
"Prettify" code for display on blog page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: "Prettify" code for display on blog page (/thread-45813.html)



"Prettify" code for display on blog page - El Forum - 10-06-2011

[eluser]sehummel[/eluser]
I don't know if this is the appropriate page to post this, but I am looking for some kind of script, probably JS, that will let me display code I have written in an attractive format on my blog page.

I've tried googling "prettify" and I usually come up with TIDY scripts. I'm looking for something that I can use to present my code to my blog readers, not something to tidy my own code or what gets rendered in the source code. Does anyone know of any scripts that will do this so that when I display code snippets on my blog it is color-coded and line-numbered?

Thanks.