Hacker News new | ask | show | jobs
by sshrin 5194 days ago
Is there a way to style dynamically inserted <code> blocks (say inserted via an ajax call) after the page loads? I did not see an equivalent of the prettify() function of google-code-prettify that lets you do this. Looks great otherwise.
1 comments

Looks to me like Rainbow.init() would do it.
Yeah I just have to make Rainbow.init() public and make it ignore blocks that have already been processed. Then this will work. Feel free to make a ticket for me on https://github.com/ccampbell/rainbow/issues
Thanks! Looks like Issue#6 has already been created.