$( document ).on('DOMNodeInserted', 'pre', function(eventObject) {
	var thisElement = $(this);

	if(!thisElement.hasClass('language-abap')) {
		changingPres = true;

		thisElement.addClass('language-abap');

		var newHtmlForElement = thisElement.html();
		newHtmlForElement = replaceAll(newHtmlForElement,	'<br>',	'\n');

		newHtmlForElement = '<code>' + newHtmlForElement + '</code>';

		// Prevents Highlighting of non ABAP comments
		newHtmlForElement = replaceAll(newHtmlForElement, '*\n&gt;&gt;&gt;', '*\n</code><code class="language-none">&gt;&gt;&gt;');
		newHtmlForElement = replaceAll(newHtmlForElement, '&lt;&lt;&lt;\n\n*&amp;', '&lt;&lt;&lt;</code><code class="language-abap">\n\n*&amp;');

		thisElement.html(newHtmlForElement);
		Prism.highlightAll();

		commonCIPostProcessing(thisElement, function(noteNumber) {
			return '/#/notes/' + noteNumber;
		});
	}
});

$( document ).on('DOMNodeInserted', 'pre', function(eventObject) {
	var thisElement = $(this);

	if(!thisElement.hasClass('code-highlighted')) {
		changingPres = true;

		thisElement.addClass('code-highlighted');

		var newHtmlForElement = thisElement.html();
		newHtmlForElement = replaceAll(newHtmlForElement,	'<br>',	'\n');

		newHtmlForElement = '<code>' + newHtmlForElement + '</code>';

		// Prevents Highlighting of non ABAP comments
		newHtmlForElement = replaceAll(newHtmlForElement, '*\n&gt;&gt;&gt;', '*\n</code><code class="language-none">&gt;&gt;&gt;');
		newHtmlForElement = replaceAll(newHtmlForElement, '&lt;&lt;&lt;\n\n*&amp;', '&lt;&lt;&lt;</code><code class="language-abap">\n\n*&amp;');

		thisElement.html(newHtmlForElement);
		Prism.highlightAll();

		commonCIPostProcessing(thisElement, function(noteNumber) {
			return '/#/notes/' + noteNumber;
		});
	}
});

Fix after latest update from launchpad
Fix after latest update from launchpad

After the latest update from lauchpad (August/2016) the
html pre block for the abap instructtions already contained
the class language-abap, which prevented our code from
running as this was a condition we checked to prevent
running the highlighting unecessarily.

We are now using a different class for this, code-highlighted.
