Skip to content

Commit 252bbfc

Browse files
authored
README fix syntax highlighting
1 parent 1d0dc9e commit 252bbfc

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ This module provides a easy way to apply cursor-based pagination to your Ecto Qu
66

77
## Usage:
88

9-
1. Add macro to your repo
9+
1. Add macro to your repo
1010

11-
```elixir
12-
defmodule MyRepo do
13-
use Ecto.Repo, otp_app: :my_app
14-
use Ecto.Paging.Repo # This string adds `paginate/2` and `page/3` methods.
15-
end
16-
```
11+
```elixir
12+
defmodule MyRepo do
13+
use Ecto.Repo, otp_app: :my_app
14+
use Ecto.Paging.Repo # This string adds `paginate/2` and `page/3` methods.
15+
end
16+
```
1717

18-
2. Paginate!
18+
2. Paginate!
1919

20-
```elixir
21-
query = from p in Ecto.Paging.Schema
20+
```elixir
21+
query = from p in Ecto.Paging.Schema
2222

23-
{res, next_paging} = query
24-
|> Ecto.Paging.TestRepo.page(%Ecto.Paging{limit: 150})
25-
```
23+
{res, next_paging} = query
24+
|> Ecto.Paging.TestRepo.page(%Ecto.Paging{limit: 150})
25+
```
2626

2727
## Limitations:
2828

@@ -33,18 +33,18 @@ This module provides a easy way to apply cursor-based pagination to your Ecto Qu
3333

3434
## Installation
3535

36-
1. Add `ecto_paging` to your list of dependencies in `mix.exs`:
36+
1. Add `ecto_paging` to your list of dependencies in `mix.exs`:
3737

38-
```elixir
39-
def deps do
40-
[{:ecto_paging, "~> 0.8.4"}]
41-
end
42-
```
38+
```elixir
39+
def deps do
40+
[{:ecto_paging, "~> 0.8.4"}]
41+
end
42+
```
4343

44-
2. Ensure `ecto_paging` is started before your application:
44+
2. Ensure `ecto_paging` is started before your application:
4545

46-
```elixir
47-
def application do
48-
[applications: [:ecto_paging]]
49-
end
50-
```
46+
```elixir
47+
def application do
48+
[applications: [:ecto_paging]]
49+
end
50+
```

0 commit comments

Comments
 (0)