Skip to content

Commit f0219b8

Browse files
moeteloMatthiee
authored andcommitted
README.md fix code highlighting (#17)
1 parent ca3ebc2 commit f0219b8

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
A simple, light-weight and strongly typed commandline parser made in .Net standard.
1818

1919
## Installation
20-
21-
PM> Install-Package MatthiWare.CommandLineParser
20+
```powershell
21+
PM> Install-Package MatthiWare.CommandLineParser
22+
```
2223

2324
## Configuration
2425

2526
#### Using model class with attributes
26-
27+
``` csharp
2728
using MatthiWare.CommandLine;
2829
using MatthiWare.CommandLine.Core.Attributes;
2930

@@ -59,11 +60,12 @@ A simple, light-weight and strongly typed commandline parser made in .Net standa
5960
[Name("-p", "--port"), DefaultValue(8080)]
6061
public int Port { get; set; } // Optional
6162
}
63+
```
6264

6365
_**Warning:** Attributes will be overwritten by fluent api if both are configured_
6466

6567
#### Using model class and Fluent API
66-
68+
``` csharp
6769
using MatthiWare.CommandLine;
6870

6971
static int Main(string[] args)
@@ -104,11 +106,12 @@ _**Warning:** Attributes will be overwritten by fluent api if both are configure
104106
105107
public int Port { get; set; } // Optional
106108
}
109+
```
107110

108111
_**Warning:** Attributes will be overwritten by fluent api if both are configured_
109112

110113
### Commands
111-
114+
``` csharp
112115
using MatthiWare.CommandLine;
113116

114117
static int Main(string[] args)
@@ -168,3 +171,4 @@ _**Warning:** Attributes will be overwritten by fluent api if both are configure
168171
{
169172
public bool Verbose { get; set; }
170173
}
174+
```

0 commit comments

Comments
 (0)