Revision [2532]
This is an old revision of FormatterCSV made by ThePLG on 2020-04-20 19:29:32.
Features
- Rows of the table alternate background color
- Column alignment: left, right, center or default
- Table headers/footers using wiki style heading markers
- Add comments in between data by starting a line with (#); blank lines are ignored
- Cells can be surrounded in double quotes (")
- It is possible to escape semi-colons with a backslash (\), that should appear in text
- Camel links in cell text are linked to their wiki internal pages
- Text in quotes is preserved e.g., whitespace, no splitting on semi-colons
Installation
- Copy the code below into a file named formatters/csv.php
- And give it the same file permissions as the other files in that directory.
Code
History
- 2005-05-09 Published on main site - OnegWR
- Sept-2019 Code clean-up, remove deprecated code, more features, fix bugs - ThePLG
- Apr-2020 Upgrade code for PHP7, add some CSS formatting options.
TODO
- camel links are really hard to see
- Add more cell formatting options: text/background color, alignment, bold, italic, ...
- Find a way to implement a "\n" in a cell (every call to $this->Format() is another include of formatters/wakka.php, so I would like to find another way...)
- Use more CSS classes