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

Support pretty printing #13

Closed
cardil opened this issue Jul 16, 2019 · 2 comments
Closed

Support pretty printing #13

cardil opened this issue Jul 16, 2019 · 2 comments
Labels
🌱 enhancement New feature or request
Milestone

Comments

@cardil
Copy link
Member

cardil commented Jul 16, 2019

Now there is no way that theme can support indenting, as it is necessary to hold indent level and to change it according to theme rules.

There should be some way that theme can change current indent level, and effectively supports pretty print.

@cardil cardil added this to the 2.0 milestone Jul 16, 2019
@cardil cardil added the 🌱 enhancement New feature or request label Jul 16, 2019
@cardil
Copy link
Member Author

cardil commented Jul 16, 2019

Implementation proposal:

There should be added a Indentation interface that will be contained in InspectionContext. This Indentation interface should be passed to all theme methods as a parameter.

interface Indentation {
  int current();
  void increment();
  void decrement();
}

@cardil
Copy link
Member Author

cardil commented Aug 9, 2019

Cloded by merging #16

@cardil cardil closed this as completed Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant