QB64-Phoenix-Edition / QB64pe

The QB64 Phoenix Edition Repository
https://qb64phoenix.com
Other
132 stars 26 forks source link

Format mode #508

Closed flukiluke closed 4 months ago

flukiluke commented 4 months ago

Closes #215

This PR adds a -y command line option to format the input instead of compiling it. -f may be used to set the formatting parameters, e.g. ./qb64pe -y source/qb64pe.bas -f:autolayout=true -f:keywordcapitals=true -f:autoindent=true -f:autoindentsize=4 -f:indentsubs=true -o source/qb64pe.bas

Leaving in draft state until some tests for format mode can also be added.