sqlalchemy / mako

Mako Templates for Python
https://www.makotemplates.org
MIT License
353 stars 60 forks source link

Is there a mako+html formatter? #392

Open trusktr opened 6 months ago

trusktr commented 6 months ago

It would be nice to be able to format HTML files containing mako syntax. Without Mako syntax, I can run Prettier on HTML files to get nicely formatted code, but with Mako syntax Prettier fumbles.

trusktr commented 5 months ago

I installed the following "Better Mako" VS Code plugin for mako syntax support, and it introduces syntax highlighting as well as code formatting (I think it might be VS Code's built-in HTML formatter simply due to the HTML syntax being enabled):

https://marketplace.visualstudio.com/items?itemName=chaojie.better-mako

zzzeek commented 5 months ago

yah, sorry, this is not any area I've seen much in. Pycharm might have had mako formatting but they dropped it.