diff --git a/cms/djangoapps/pipeline_js/templates/xmodule.js b/cms/djangoapps/pipeline_js/templates/xmodule.js
index 1b257bbd97..fb0c22d2c1 100644
--- a/cms/djangoapps/pipeline_js/templates/xmodule.js
+++ b/cms/djangoapps/pipeline_js/templates/xmodule.js
@@ -6,8 +6,9 @@
## and attach them to the global context manually.
define(["jquery", "underscore", "codemirror", "tinymce",
"jquery.tinymce", "jquery.qtip", "jquery.scrollTo", "jquery.flot",
- "jquery.cookie", "pretty-print", "utility"],
- function($, _, CodeMirror) {
+ "jquery.cookie",
+ "utility"],
+ function($, _, CodeMirror, tinymce) {
window.$ = $;
window._ = _;
require(['mathjax']);
diff --git a/cms/static/cms/js/require-config.js b/cms/static/cms/js/require-config.js
index 1755ac4bb4..ff7d342c25 100644
--- a/cms/static/cms/js/require-config.js
+++ b/cms/static/cms/js/require-config.js
@@ -28,7 +28,6 @@
'mustache': 'js/vendor/mustache',
'codemirror': 'js/vendor/codemirror-compressed',
'codemirror/stex': 'js/vendor/CodeMirror/stex',
- 'pretty-print': 'js/lib/pretty-print',
'jquery': 'common/js/vendor/jquery',
'jquery-migrate': 'common/js/vendor/jquery-migrate',
'jquery.ui': 'js/vendor/jquery-ui.min',
diff --git a/common/lib/xmodule/xmodule/js/karma_xmodule.conf.js b/common/lib/xmodule/xmodule/js/karma_xmodule.conf.js
index 40e05ada88..d08e3173a8 100644
--- a/common/lib/xmodule/xmodule/js/karma_xmodule.conf.js
+++ b/common/lib/xmodule/xmodule/js/karma_xmodule.conf.js
@@ -21,8 +21,7 @@ var options = {
{pattern: 'common_static/coffee/src/ajax_prefix.js', included: true},
{pattern: 'common_static/common/js/vendor/underscore.js', included: true},
{pattern: 'common_static/common/js/vendor/backbone.js', included: true},
- {pattern: 'common_static/js/vendor/codemirror-compressed.js', included: true},
- {pattern: 'common_static/js/lib/pretty-print.js', included: true},
+ {pattern: 'common_static/js/vendor/CodeMirror/codemirror.js', included: true},
{pattern: 'common_static/js/vendor/draggabilly.js'},
{pattern: 'common_static/common/js/vendor/jquery.js', included: true},
{pattern: 'common_static/common/js/vendor/jquery-migrate.js', included: true},
diff --git a/common/static/js/lib/pretty-print.js b/common/static/js/lib/pretty-print.js
deleted file mode 100644
index 9b2259c8a7..0000000000
--- a/common/static/js/lib/pretty-print.js
+++ /dev/null
@@ -1,106 +0,0 @@
-/**
-* pretty-data - nodejs plugin to pretty-print or minify data in XML, JSON and CSS formats.
-*
-* Version - 0.40.0
-* Copyright (c) 2012 Vadim Kiryukhin
-* vkiryukhin @ gmail.com
-* http://www.eslinstructor.net/pretty-data/
-*
-*
-* Code extracted for xml formatting only
-*/
-
-/* eslint-disable */
-
-(function (root, factory){
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define([], function (){
- return (root.PrettyPrint = factory());
- });
- } else {
- // Browser globals
- root.PrettyPrint = factory();
- }
-}(this, function () {
- function PrettyPrint(){
- var maxdeep = 100, // nesting level
- ix = 0;
-
- this.shift = ['\n']; // array of shifts
- this.step = ' '; // 2 spaces
-
- // initialize array with shifts //
- for (ix = 0; ix < maxdeep; ix++) {
- this.shift.push(this.shift[ix] + this.step);
- }
- }
-
- PrettyPrint.prototype.xml = function (text) {
- var ar = text.replace(/>\s{0,}<")
- .replace(/ or -1) {
- str += this.shift[deep] + ar[ix];
- inComment = true;
- // end comment or //
- if (ar[ix].search(/-->/) > -1 || ar[ix].search(/\]>/) > -1 || ar[ix].search(/!DOCTYPE/) > -1) {
- inComment = false;
- }
- } else
- // end comment or //
- if (ar[ix].search(/-->/) > -1 || ar[ix].search(/\]>/) > -1) {
- str += ar[ix];
- inComment = false;
- } else
- // //
- if (/^<\w/.exec(ar[ix - 1]) && /^<\/\w/.exec(ar[ix]) &&
- /^<[\w:\-\.\,]+/.exec(ar[ix - 1]) == /^<\/[\w:\-\.\,]+/.exec(ar[ix])[0].replace('/', '')) {
- str += ar[ix];
- if (!inComment) deep--;
- } else
- // //
- if (ar[ix].search(/<\w/) > -1 && ar[ix].search(/<\//) == -1 && ar[ix].search(/\/>/) == -1) {
- str = !inComment ? str += this.shift[deep++] + ar[ix] : str += ar[ix];
- } else
- // ... //
- if (ar[ix].search(/<\w/) > -1 && ar[ix].search(/<\//) > -1) {
- str = !inComment ? str += this.shift[deep] + ar[ix] : str += ar[ix];
- } else
- // //
- if (ar[ix].search(/<\//) > -1) {
- str = !inComment ? str += this.shift[--deep] + ar[ix] : str += ar[ix];
- } else
- // //
- if (ar[ix].search(/\/>/) > -1) {
- str = !inComment ? str += this.shift[deep] + ar[ix] : str += ar[ix];
- } else
- // xml ... ?> //
- if (ar[ix].search(/<\?/) > -1) {
- str += this.shift[deep] + ar[ix];
- } else
- // xmlns //
- if (ar[ix].search(/xmlns\:/) > -1 || ar[ix].search(/xmlns\=/) > -1) {
- str += this.shift[deep] + ar[ix];
- }
-
- else {
- str += ar[ix];
- }
- }
-
- return (str[0] == '\n') ? str.slice(1) : str;
- };
-
- return new PrettyPrint();
-}));
diff --git a/common/static/js/spec/pretty_print_xml_spec.js b/common/static/js/spec/pretty_print_xml_spec.js
deleted file mode 100644
index 35042682e6..0000000000
--- a/common/static/js/spec/pretty_print_xml_spec.js
+++ /dev/null
@@ -1,20 +0,0 @@
-describe('XML Formatting Lib', function() {
- 'use strict';
-
- it('correctly format the xml', function() {
- var rawXml = 'Belgian Waffles$5.95',
- expectedXml = '\n \n Belgian Waffles' +
- '\n $5.95\n \n';
-
- expect(window.PrettyPrint.xml(rawXml)).toEqual(expectedXml);
- });
-
- it('correctly handles the whitespaces and newlines', function() {
- var rawXml = ' Belgian Waffles' +
- '\n\n\n$5.95 ',
- expectedXml = '\n \n Belgian Waffles' +
- '\n $5.95\n \n';
-
- expect(window.PrettyPrint.xml(rawXml)).toEqual(expectedXml);
- });
-});
diff --git a/common/static/karma_common.conf.js b/common/static/karma_common.conf.js
index 51ff6fc1fd..10ef28421b 100644
--- a/common/static/karma_common.conf.js
+++ b/common/static/karma_common.conf.js
@@ -28,7 +28,6 @@ var options = {
{pattern: 'js/vendor/URI.min.js', included: true},
{pattern: 'js/test/add_ajax_prefix.js', included: true},
{pattern: 'js/test/i18n.js', included: true},
- {pattern: 'js/lib/pretty-print.js', included: true},
{pattern: 'common/js/vendor/underscore.js', included: true},
{pattern: 'common/js/vendor/underscore.string.js', included: true},
diff --git a/lms/static/karma_lms_coffee.conf.js b/lms/static/karma_lms_coffee.conf.js
index d1a4035a7b..325bb7a92e 100644
--- a/lms/static/karma_lms_coffee.conf.js
+++ b/lms/static/karma_lms_coffee.conf.js
@@ -31,7 +31,7 @@ var options = {
{pattern: 'common/js/xblock/*.js', included: true},
{pattern: 'xmodule_js/common_static/js/src/logger.js', included: true},
{pattern: 'xmodule_js/common_static/js/test/i18n.js', included: true},
- {pattern: 'xmodule_js/common_static/js/vendor/codemirror-compressed.js', included: true},
+ {pattern: 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js', included: true},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.cookie.js', included: true},
{pattern: 'xmodule_js/common_static/js/vendor/flot/jquery.flot.js', included: true},
{pattern: 'xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js', included: true},