---
title: "line highlighting"
format: html
filters:
- line-highlight
---
```{python}
#| message: false
#| source-line-numbers: "1,4"
#| class-output: numberLines highlight
#| output-line-numbers: "2"
test = [1, 2, 3, 4]
for i in test:
if i%2 == 0:
print("this line is highlighted")
else:
print("this line is not highlighted")
```
The main reason is
class-outputis not a option for python chunk.Consider this example,