MBeautifier
MBeautifier copied to clipboard
Worng indentation with formatFileNoEditor
if there keywords like "if", "while", "for", "function" in comments (e.g. "% this should be done while ...") , strings (e.g. variable1 ="while the sun is shining") or commands (e.g. "dbstop if error") the function formatFileNoEditor is not working properly with indentation.
Similarly, it doesn't get the end
correct (indents it too far).
WORKAROUND: Use the formatFile
function instead,