Skip to content

Commit

Permalink
Merge pull request #5 from nlohmann/patch-1
Browse files Browse the repository at this point in the history
added syntax highlighting
  • Loading branch information
vincentlaucsb authored Jun 26, 2018
2 parents 00f2d2b + 9cb1f91 commit 9ff7e2e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ All of this library's essentials are located under `src/`, with no dependencies
### Reading a Large File
With this library, you can easily stream over a large file without reading its entirety into memory.

```
```cpp
# include "csv_parser.h"

using namespace csv;
Expand All @@ -50,7 +50,7 @@ while (reader.read_row(row)) {
You can also reorder a CSV or only keep a subset of the data simply by passing
in a vector of column indices.
```
```cpp
# include "csv_parser.h"
using namespace csv;
Expand All @@ -70,7 +70,7 @@ while (reader.read_row(row)) {
### Automatic Type Conversions
If your CSV has lots of numeric values, you can also have this parser automatically convert them to the proper data type.

```
```cpp
# include "csv_parser.h"

using namespace csv;
Expand All @@ -95,7 +95,7 @@ while (reader.read_row(row)) {
### Specifying a Specific Delimiter, Quoting Character, etc.
Although the CSV parser has a decent guessing mechanism, in some cases it is preferrable to specify the exact parameters of a file.
```
```cpp
# include "csv_parser.h"
# include ...
Expand All @@ -119,7 +119,7 @@ while (reader.read_row(row)) {

### Parsing an In-Memory String

```
```cpp
# include "csv_parser.h"
# include ...

Expand Down Expand Up @@ -149,7 +149,7 @@ int main() {

### Writing CSV Files

```
```cpp
# include "csv_writer.hpp"
# include ...

Expand Down

0 comments on commit 9ff7e2e

Please sign in to comment.