Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude code block from formatting. #418

Open
saygo-png opened this issue Aug 4, 2024 · 0 comments
Open

Exclude code block from formatting. #418

saygo-png opened this issue Aug 4, 2024 · 0 comments
Labels
component | engine Core algorithm of the tool roadmap | comment pragmas status | it is a good thing We agree it is good to implement this type | feature request New feature or request

Comments

@saygo-png
Copy link

I can't find a way to do this, so i'm assuming its not a feature yet.
I'd like to be able to create 2 comments that define a block of code, which Alejandra will not format.

Haskell's ormolu supports it like this
image

This allows for custom formatting in edge cases

@kamadorueda kamadorueda added type | feature request New feature or request status | it is a good thing We agree it is good to implement this component | engine Core algorithm of the tool roadmap | comment pragmas labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component | engine Core algorithm of the tool roadmap | comment pragmas status | it is a good thing We agree it is good to implement this type | feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants