3 ms·
Black supports ignoring sections with a `# fmt: off` directive, and a hand-formatted constant table is a common use for that: https://black.readthedocs.io/en/s
by tczMUFlmoNk 2y ago
Black supports ignoring sections with a `# fmt: off` directive, and a hand-formatted constant table is a common use for that:
https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#ignoring-sections https://black.readthedocs.io/en/stable/usage_and_configurati...
Other formatters have similar functionality; e.g.:
- /* prettier-ignore */: https://prettier.io/docs/en/ignore.html#javascript https://prettier.io/docs/en/ignore.html#javascript
- #[rustfmt::skip]: https://github.com/rust-lang/rustfmt?tab=readme-ov-file#tips https://github.com/rust-lang/rustfmt?tab=readme-ov-file#tips
- neilv 2y agoThank you, that'll come in handy again, I'm sure.