diff --git a/stimulus-reflex.md b/stimulus-reflex.md
index a1abdc9c7..360f29694 100644
--- a/stimulus-reflex.md
+++ b/stimulus-reflex.md
@@ -9,8 +9,9 @@ updated: 2021-01-07
Trigger reflexes without writing any javascript with the `data-reflex` attribute.
-```erb
-
+#### index.html.erb
+
+```html
```
+#### counter_reflex.rb
+
```ruby
-# counter_reflex.rb
class CounterReflex < StimulusReflex::Reflex
def increment
@count = element.dataset[:count].to_i + element.dataset[:step].to_i
@@ -33,16 +35,18 @@ end
Stimulus.js controllers registered with StimulusReflex can use the `stimulate` method to trigger reflexes
-```erb
-
+#### index.html.erb
+
+```html
Increment <%= @count %>
```
+#### counter_controller.js
+
```javascript
-// counter_controller.js
import { Controller } from 'stimulus'
import StimulusReflex from 'stimulus_reflex'
@@ -58,8 +62,9 @@ export default class extends Controller {
}
```
+#### counter_reflex.rb
+
```ruby
-# counter_reflex.rb
class CounterReflex < StimulusReflex::Reflex
def increment(step = 1)
session[:count] = session[:count].to_i + step
@@ -73,14 +78,14 @@ end
Instead of refreshing the entire page, you can specify a portion of the page to update with `morph(selector, content)`
-```erb
+```html