Commit 37d79aed authored by totten's avatar totten

CRM_Admin_Page_APIExplorer - Change syntax highlighting theme. Add offline support.

The default theme has a very strong pair of alternating background colors which feels
distracting.
parent aef6568a
......@@ -44,8 +44,8 @@ class CRM_Admin_Page_APIExplorer extends CRM_Core_Page {
public function run() {
CRM_Core_Resources::singleton()
->addScriptFile('civicrm', 'templates/CRM/Admin/Page/APIExplorer.js')
->addScriptUrl('//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js', 99)
->addStyleUrl('//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css', 99);
->addScriptFile('civicrm', 'bower_components/google-code-prettify/bin/prettify.min.js', 99)
->addStyleFile('civicrm', 'bower_components/google-code-prettify/styles/sunburst.css', 99);
$this->assign('operators', CRM_Core_DAO::acceptedSQLOperators());
......
......@@ -17,7 +17,8 @@
"d3": "3.4.11",
"jquery": "~1.11",
"jquery-ui": "~1.11",
"lodash-compat": "~3.0"
"lodash-compat": "~3.0",
"google-code-prettify": "1.0.3"
},
"resolutions": {
"angular": "~1.3.8"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment