kasik96 / VS-Latte

VS Code Language extension Nette Latte + Neon for VS Code
https://github.com/kasik96/VS-Latte
MIT License
21 stars 6 forks source link

Code formatter for latte #10

Open MKI-Miro opened 4 years ago

MKI-Miro commented 4 years ago

Hi

Is it possible to add code formatter for latte. (When you press alt shift f )

Thanks

kasik96 commented 4 years ago

I was trying to add this feature, but it was not consistent, and sometimes it really badly messed up the code. I don't have much to work on it now, but if someone wants to try, I could send him the original code for this.

geerdes commented 3 years ago

I would suggest to include the html formatter to latte files and add a html tag auto close option. So what I mean is, that latte files behave like html files, but also use latte color settings. Similar to php files.