What to replace autoFormatRange ?


#1

Hey. What is the latest version of codemiror can replace the formatting function of HTML autoFormatRange? I tried to just put the formatting.js file from the old version in the add-ons folder, but it doesn’t really work. How to solve a problem?


#2

Depending on the language you want to format, there may be some other software on NPM that pretty-prints it. CodeMirror no longer provides this functionality.