mvcisback / magnumSTL

BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Pretty printing + Syntax Highlighting #10

Open mvcisback opened 8 years ago

mvcisback commented 8 years ago

It would be nice to have human readable ways of viewing a various STL encodings and Game encodings in the console. These should be alternatives to the repr versions

Steps:

  1. [ ] Optional Console Syntax Highlighting:
    • may need to have parser ignore ascii color escape codes
    • Operators should be a distinct color, variables should be distinct, time should be distinct, etc
  2. [ ] Troublesome components of the spec should be colored red in Diary mode
  3. [ ] Game should have an improved display mode.
  4. [ ] Avoid wrapping formula around console (not sure how to implement)
  5. [ ] Integrate with IPython to automatically call this instead of repr by default

I think these changes would make interactive sessions with the API much more pleasurable.

The recommended library to use is colorama