17

I am doing a presentation using Marp. It automatically adds syntax coloring to blocks of code. For example this would be colored as Ruby:

```
def fun(x):
    x+1
end
```

I can force highlight.js to change the syntax highlighting like this:

```python
def fun(x):
    x+1
end
```

Is there a keyword which disables highlighting (something like none, default, code or unknown)?

2 Answers 2

21

According to this issue on GitHub it is possible and the keyword is text:

```text
def fun(x):
    x+1
end
```
10

I found only plaintext to work:

```plaintext
def fun(x):
    x+1
end
```

Source: https://highlightjs.org/static/demo/

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .