Skip to content

Commit 75b2b0e

Browse files
authored
Merge pull request #1687 from lamtrinhdev/Enhance_README.md
Enhance code block format in README.md
2 parents b842955 + 5825c42 commit 75b2b0e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,22 @@ protoc compiler and the SwiftProtobuf code generator plugin.
109109

110110
Building the plugin should be simple on any supported Swift platform:
111111

112-
```
112+
```bash
113113
git clone https://github.com/apple/swift-protobuf.git
114114
cd swift-protobuf
115115
```
116116

117117
Pick what released version of SwiftProtobuf you are going to use. You can get
118118
a list of tags with:
119119

120-
```
120+
```bash
121121
git tag -l
122122
```
123123

124124
Once you pick the version you will use, set your local state to match, and
125125
build the protoc plugin:
126126

127-
```
127+
```bash
128128
git checkout tags/[tag_name]
129129
swift build -c release
130130
```
@@ -143,7 +143,7 @@ to use also use `--static-swift-stdlib` with `swift build`.
143143

144144
If you prefer using [Homebrew](https://brew.sh):
145145

146-
```
146+
```bash
147147
brew install swift-protobuf
148148
```
149149

@@ -154,7 +154,7 @@ This will install `protoc` compiler and Swift code generator plugin.
154154
To generate Swift output for your .proto files, you run the `protoc` command as
155155
usual, using the `--swift_out=<directory>` option:
156156

157-
```
157+
```bash
158158
protoc --swift_out=. my.proto
159159
```
160160

@@ -240,7 +240,7 @@ message BookInfo {
240240
```
241241

242242
Then generate Swift code using:
243-
```
243+
```bash
244244
protoc --swift_out=. DataModel.proto
245245
```
246246

0 commit comments

Comments
 (0)