Can we use indentation/beautification from OOTB codemirror 5 for any custom mode

Hi @marijn ,
i have a custom mode whose implementation is very similar to javascript, so can i use the indentation/code-beautification from javascript mode available in codemirror 5 directly OOTB for my custom mode.

CodeMirror 5 did not have a code formatting feature. Some really old versions had it, but it never worked great and I quickly realized I didn’t want to maintain such a thing.