js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

How does this thing work?

Open whitneyland opened this issue 7 years ago • 4 comments

@einars @bitwiseman Not trying to ask for work to be done here, but are there a few sentences somewhere that explain the basic approach the project uses to solve the beautification problem?

Is the idea to start with basic HTML document schema (despite it's inadequacy) and use heuristics from there? Or maybe to start with help from components from one of the major browser engines? Or some other creative idea? Is there a concept of rules data, that is external and can be modified without changing code?

Not trying to be lazy, it would just be helpful to know the philosophy before wading around deeply in code to know the intended overarching philosophies.

Best regards -

whitneyland avatar Dec 27 '17 18:12 whitneyland