TangibleInc / template-system

A template system for WordPress with content type loops and conditions
https://docs.loopsandlogic.com/reference/template-system/
6 stars 2 forks source link

Overview - Formatter improvements #71

Closed eliot-akira closed 6 months ago

eliot-akira commented 7 months ago

From: https://github.com/TangibleInc/template-system/issues/67#issuecomment-1917753023

eliot-akira commented 6 months ago

@BenTangible

These formatting issues have been solved by forking and customizing the HTML formatter in Prettier, which is the industry standard and being used for other languages (CSS/SCSS/JS) in the code editor - as well as in our bundler, Tangible Roller.

It was a huge effort, but much better than the previous attempt which would have involved long-term bike-shedding of details. Prettier is popular because it has good defaults, and we can let it handle all the formatting decisions.


For the keyboard shortcuts:


We can create new issues for refining the details.