// Add unformatted code blocks back in
if ($code && !empty($code[1])) {
foreach ($code[1] as $block) {
- $text = preg_replace('#<pre></pre>#', "<pre class='prettyprint'>$block</pre>", $text, 1);
+ $text = preg_replace('#<pre></pre>#', "<pre>$block</pre>", $text, 1);
}
}
return $text;
entityDoc = result.doc;
CRM.utils.setOptions($('#doc-action').prop('disabled', false).removeClass('loading'), result.actions);
$('#doc-result').html(result.doc);
+ prettyPrint('#doc-result pre');
});
}
if (result.code) {
$('#doc-result').append(docCodeTpl(result));
}
- prettyPrint('.api-doc-code pre');
+ prettyPrint('#doc-result pre');
});
} else {
$('#doc-result').html(entityDoc);
+ prettyPrint('#doc-result pre');
}
}