mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-01-10 01:20:06 +00:00
doc: add colorize section to README
This commit is contained in:
parent
2fd466a3c3
commit
28519f5712
@ -70,6 +70,7 @@ int main()
|
||||
- [Formatting user-defined error messages](#formatting-user-defined-error-messages)
|
||||
- [Obtaining location information](#obtaining-location-information)
|
||||
- [Exceptions](#exceptions)
|
||||
- [Colorize Error Messages](#colorize-error-messages)
|
||||
- [Serializing TOML data](#serializing-toml-data)
|
||||
- [Underlying types](#underlying-types)
|
||||
- [Unreleased TOML features](#unreleased-toml-features)
|
||||
@ -1315,6 +1316,14 @@ struct exception : public std::exception
|
||||
|
||||
It represents where the error occurs.
|
||||
|
||||
## Colorize Error Messages
|
||||
|
||||
By `#define TOML11_COLORIZE_ERROR_MESSAGE`, the error messages from
|
||||
`toml::parse` and `toml::find|get` will be colorized.
|
||||
|
||||
Note that it is hard to see when the message is written in a file, not terminal,
|
||||
because it uses [ANSI escape code](https://en.wikipedia.org/wiki/ANSI_escape_code).
|
||||
|
||||
## Serializing TOML data
|
||||
|
||||
toml11 enables you to serialize data into toml format.
|
||||
|
Loading…
Reference in New Issue
Block a user