Link Details

Like other syntax highlighters, Prism.js is designed to display tagged code on load as it would look in a code editor. This is a problem if you are it to display code you are loading in with JS or AJAX. In this article, you will learn a way of re-rendering the Prism object again to render all code on the page.

Posted by alecn  |   Submitted: Oct 22 2013 / 10:03

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Recommended Links

Scala
Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Play
  3. Akka
  4. Debugging JavaScript
  5. Design Patterns
  1. Apache Hadoop
  2. REST
  3. Java
  4. Git
  5. Java Performance
Connect with DZone