Skip to content

Commit ed818d3

Browse files
authored
Merge pull request #6 from dfellis/master
Add syntax highlighting to README
2 parents 54d455c + 1119d31 commit ed818d3

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
@@ -10,7 +10,7 @@ This library provides Java bindings for the [H3 Core Library](https://github.com
1010

1111
Add it to your pom.xml:
1212

13-
```
13+
```xml
1414
<dependency>
1515
<groupId>com.uber</groupId>
1616
<artifactId>h3</artifactId>
@@ -20,13 +20,13 @@ Add it to your pom.xml:
2020

2121
Or, using Gradle:
2222

23-
```
23+
```gradle
2424
compile("com.uber:h3:3.0.0")
2525
```
2626

2727
Encode a location into a hexagon address:
2828

29-
```
29+
```java
3030
H3Core h3 = H3Core.newInstance();
3131

3232
double lat = 37.775938728915946;
@@ -38,21 +38,21 @@ String hexAddr = h3.geoToH3Address(lat, lng, res);
3838

3939
Decode a hexagon address into coordinates:
4040

41-
```
41+
```java
4242
Vector2D[] geoCoords = h3.h3ToGeoBoundary(hexAddr);
4343
```
4444

4545
# Development
4646

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

49-
```
49+
```sh
5050
mvn install
5151
```
5252

5353
To build the library, run:
5454

55-
```
55+
```sh
5656
mvn package
5757
```
5858

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

6363
To build Javadocs documentation:
6464

65-
```
65+
```sh
6666
mvn site
6767
```
6868

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

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

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

0 commit comments

Comments
 (0)