Basic fancy formats...
Script attached in zip file below.
- Fancy, fancy formatting
- Format lists and arrays
- 6.1. string — Common string operations — Python 3.5.1 documentation
- Python mini-formatting language
This is a work in progress.
I am tired of reinventing the wheel every time I want to format output so it looks appealing and conveys the information I want. To this end, I am going to present what I have... but I will do this in increments.
I will not provide commentary... I don't want to cloud the issue with rules and specifics. I use a monospaced font to ensure that the output is what you would expect in any python IDE, and to control vertical alignment within a pure text environment. Asample script is attached so you can experiment with your own ideas.
Consult the script header for further information. The script also contains some format tips that arise from formatting script... which I have posted on previously.
|Sample output (courier new 10pt)|
This is the only font that will maintain monospacing from the available font family. I formatted using the "Plain" syntax highlighter so that line numbers were created for reference purposes.
More to come....