eclipse-lemminx / lemminx

XML Language Server
Eclipse Public License 2.0
272 stars 93 forks source link

XML Formatter Feature Request: Define specific element names as inline elements #1684

Open JensGabe opened 1 month ago

JensGabe commented 1 month ago

Allow a configured list of element names to define elements which should be formatted inline with sorrounding text.

We would like to be able to write styling markup like <line>Foo (ref <b>bar</b>)</line> without having the formatter put the <b> element on a new line, as this will not have the same meaning.