Poor Man's T-SQL Formatter

Has anyone used CodeMirror with the JS library of Poor Man’s T-SQL Formatter? I’m trying to use CodeMirror as a SQL editor and it could really benefit from a SQL beautifier. My skills with javascript are limited. I don’t know if this is a 10 minute setup or if it will take hours to tweak.