{"repo":"p-ranav/tabulate","free":true,"listed":false,"github":"https://github.com/p-ranav/tabulate","clone":"git clone https://github.com/p-ranav/tabulate.git","description":"Table Maker for Modern C++","language":"C++","stars":2174,"topics":["library","mit-license","table","table-maker","view","aligned","formatted-text","terminal","cli","cpp11"],"license":"MIT","category":"cli-tools","readme_excerpt":"Source for the above image can be found here Table of Contents Quick Start Formatting Options Style Inheritance Model Word Wrapping Font Alignment Font Styles Cell Colors Borders and Corners Range-based Iteration Nested Tables UTF-8 Support Exporters Markdown AsciiDoc Building Samples Generating Single Header Contributing License Quick Start tabulate is a header-only library. Just add include/ to your include directories and you should be good to go. A single header file version is also available in single include/ . NOTE Tabulate supports =C++11 . The rest of this README, however, assumes C++17 support. Create a Table object and call Table.add rows to add rows to your table. Use RowStream to format table data with stream insertion. You can format this table using Table.format() which returns a Format object. Using a fluent interface, format properties of the table, e.g., borders, font styles, colors etc. You can access rows in the table using Table[row index] . This will return a Row object on which you can similarly call Row.format() to format properties of all the cells in that row. Now, let's format the header of the table. The following code changes the font background of the header row to red , aligns the cell contents to center and applies a padding to the top and bottom of the row. Calling Table.column(index) will return a Column object. Similar to rows, you can use Column.format() to format all the cells in that column. Now, let's change the font color of the second ","default_branch":null,"files":null,"tree":[],"storefront":"/r/p-ranav","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/p-ranav/tabulate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}