Skip to content

Commit 1119d31

Browse files
authored
Add syntax highlighting to README
1 parent 0e1c11d commit 1119d31

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This library provides Java bindings for the [H3 Core Library](https://github.com
88

99
Add it to your pom.xml:
1010

11-
```
11+
```xml
1212
<dependency>
1313
<groupId>com.uber</groupId>
1414
<artifactId>h3</artifactId>
@@ -18,13 +18,13 @@ Add it to your pom.xml:
1818

1919
Or, using Gradle:
2020

21-
```
21+
```gradle
2222
compile("com.uber:h3:3.0.0")
2323
```
2424

2525
Encode a location into a hexagon address:
2626

27-
```
27+
```java
2828
H3Core h3 = H3Core.newInstance();
2929

3030
double lat = 37.775938728915946;
@@ -36,21 +36,21 @@ String hexAddr = h3.geoToH3Address(lat, lng, res);
3636

3737
Decode a hexagon address into coordinates:
3838

39-
```
39+
```java
4040
Vector2D[] geoCoords = h3.h3ToGeoBoundary(hexAddr);
4141
```
4242

4343
# Development
4444

4545
Building the library requires a JDK, Maven, CMake, and a C compiler. To install to your local Maven cache, run:
4646

47-
```
47+
```sh
4848
mvn install
4949
```
5050

5151
To build the library, run:
5252

53-
```
53+
```sh
5454
mvn package
5555
```
5656

@@ -60,7 +60,7 @@ Additional information on how the build process works is available in the [build
6060

6161
To build Javadocs documentation:
6262

63-
```
63+
```sh
6464
mvn site
6565
```
6666

@@ -70,7 +70,7 @@ Then open the file `target/site/apidocs/index.html`.
7070

7171
To run benchmarks, either execute them from IntelliJ or run the following from shell: (Replace the class name as needed)
7272

73-
```
73+
```sh
7474
mvn exec:exec -Dexec.executable="java" -Dexec.args="-classpath %classpath com.uber.h3core.benchmarking.H3CoreBenchmark" -Dexec.classpathScope="test"
7575
```
7676

0 commit comments

Comments
 (0)