bower_components/prism/plugins/autoloader/prism-autoloader.js
function (lang, elt) {
		var data = lang_data[lang];
		if (!data) {
			data = lang_data[lang] = {};
		}

		// Look for additional dependencies defined on the <code> or <pre> tags
		var deps = elt.getAttribute('data-dependencies');
		if (!deps && elt.parentNode && elt.parentNode.tagName.toLowerCase() === 'pre') {
			deps = elt.parentNode.getAttribute('data-dependencies');
		}

		if (deps) {
			deps = deps.split(/\s*,\s*/g);
		} else {
			deps = [];
		}

		loadLanguages(deps, function () {
			loadLanguage(lang, function () {
				Prism.highlightElement(elt);
			});
		});
	}
function (lang, elt) {
		var data = lang_data[lang];
		if (!data) {
			data = lang_data[lang] = {};
		}

		// Look for additional dependencies defined on the <code> or <pre> tags
		var deps = elt.getAttribute('data-dependencies');
		if (!deps && elt.parentNode && elt.parentNode.tagName.toLowerCase() === 'pre') {
			deps = elt.parentNode.getAttribute('data-dependencies');
		}

		if (deps) {
			deps = deps.split(/\s*,\s*/g);
		} else {
			deps = [];
		}

		loadLanguages(deps, function () {
			loadLanguage(lang, function () {
				Prism.highlightElement(elt);
			});
		});
	}
function ( lang , elt ) { var data = lang_data [ lang ] ; if ( ! data ) { data = lang_data [ lang ] = { } ; } // Look for additional dependencies defined on the <code> or <pre> tags var deps = elt . getAttribute ( 'data-dependencies' ) ; if ( ! deps && elt . parentNode && elt . parentNode . tagName . toLowerCase ( ) === 'pre' ) { deps = elt . parentNode . getAttribute ( 'data-dependencies' ) ; } if ( deps ) { deps = deps . split ( / \s*,\s* / g ) ; } else { deps = [ ] ; } loadLanguages ( deps , function ( ) { loadLanguage ( lang , function ( ) { Prism . highlightElement ( elt ) ; } ) ; } ) ; }
Tries to load a grammar and
highlight again the given element once loaded.
@param {string} lang
@param {HTMLElement} elt
Tries to load a grammar and highlight again the given element once loaded .