Using Prettify on dynamically-generated code
Posted
by Nimbuz
on Stack Overflow
See other posts from Stack Overflow
or by Nimbuz
Published on 2010-04-04T04:00:57Z
Indexed on
2010/04/04
4:03 UTC
Read the original article
Hit count: 421
I'm using Prettify for syntax highlighting, but it doesn't work on dynamically generated code.
I have a form that when submitted generates code and displays it (without refreshing) in <div id="output></div>
, but prettify doesn't work on this code, is there any workaround?
Many thanks!
© Stack Overflow or respective owner