aramk / crayon-syntax-highlighter

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
https://wordpress.org/plugins/crayon-syntax-highlighter/
GNU General Public License v3.0
1.1k stars 248 forks source link

Loading Crayon on Angular (asynchronously) loaded content. #280

Open BenRacicot opened 9 years ago

BenRacicot commented 9 years ago

I'm loading my pages asynchronously with Angular.js but obviously the Crayon JS is instantiated on page load thus the Crayon options are broken. Could I get some direction on porting over the correct aspects of Crayon JS to have full control of when it runs on my content?

The site/page I'm experimenting on is http://pullcode/geolocation/

aramk commented 9 years ago

Crayon is written in PHP for generating the content itself, but you could always create this content manually and then apply the JS and CSS afterwards if you intend to use it outside PHP.