9 ms·
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() f
by sshrin 14y 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.
- MatthewPhillips 14y agoLooks to me like Rainbow.init() would do it.
- craigc 14y agoYeah 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 https://github.com/ccampbell/rainbow/issues
- sshrin 14y agoThanks! Looks like Issue#6 has already been created.