#2086 Unreadable code block
Closed: Fixed Opened by stlaz.

There seems to be some kind of a debug mode for certain code blocks which renders them completely unreadable.

You can see an example at this issue:
https://pagure.io/freeipa/issue/6739

Attaching a screenshot of the behavior as well.
Screenshot_from_2017-03-09_08-06-33.png


FYI this can be avoided by telling Pagure it's text and should not be highlighted.

The first one works as you want, the second does the highlighting.

```text
2620:52:0:2280:6af7:28ff:fec1:ad8d - - [08/Mar/2017:17:08:05
```
```
2620:52:0:2280:6af7:28ff:fec1:ad8d - - [08/Mar/2017:17:08:05
```

Thanks for the info! This is however not documented anywhere.

Shouldn't be text default mode? I'm confused what is actually pagure highlighting, what kind of syntax, each word?

I would expect text to be default as well.

I would expect text to be default as well.

+1 I always thought a code block was supposed to have zero highlighting. That's the expected behaviour IMO.

As far as I know, the highlighting is done by an extension in the markdown processor. The syntax I proposed is not even documented there: https://pythonhosted.org/Markdown/extensions/code_hilite.html

Metadata Update from @lslebodn:
- Issue tagged with: IDM

Ok, I just figured out the way to make it no guess the language by default (ie: unless specified).

Thoughts on using this as solution?

Metadata Update from @pingou:
- Issue assigned to pingou

@pingou Sounds about right :)

Commit 4e78fef8 fixes this issue

Metadata