SQL Formatter

Hi,
My app put SQL statement into a Textarea, and I want to give users to be able to format it neatly.
Is there any plugin or class of Xojo for me to do that? Open-Source or commercial one doesn’t matter.

Look into something like the Formatted Text Control or CustomEditField. (No links handy, sorry.)

Maybe you can implement this API

https://github.com/sqlparser/sql-pretty-printer/wiki/SQL-FaaS-API-manual