Slazer
Slazer

Reputation: 4990

How to indent Javascript source file (CKeditor.js)

I would like to edit CKeditor source file, which is called ckeditor.js. It is a Javascript file but it is completely unindented and without line breaks. How can indent the code to make it readable by human? I tried "gg=G" under vim with no success

Upvotes: 0

Views: 715

Answers (2)

t.niese
t.niese

Reputation: 40842

The source is not only missing line breaks, but also the variables names are minified.

If you want to edit the CKEditor sources you should checkout the sources from Github and do your changes in a local branch. This way you are able to bring your modified CKEditor always up-to-date.

Upvotes: 3

user1546328
user1546328

Reputation:

You are searching for "unminifier" or "beautifier" similar to this

Upvotes: 0

Related Questions