Code Beautifier for CodeMirror

Hi all,

I’m trying to set up a code beautifier for CodeMirror. I would like to beautify at least JavaScript, JSON and Python. The only beautifier I’ve found that supports all of them is code-prettify but I can’t get it working with CodeMirror. I’ve tried with js-beautify and it works but not for Python.

Has anyone managed to use code-prettify with CodeMirror? If yes, how can it be done?


code-prettify seems to generate/change HTML structure. That’s just not going to work inside of CodeMirror.

Thanks for the quick response!
Are there any alternatives, which support python?
I couldn’t find any.