Skip to content

Inline code snippets in reference do not have syntax highlighting #1064

@davepagurek

Description

@davepagurek

Most appropriate sections of the p5.js website?

Reference

What is your operating system?

Mac OS

Web browser and version

All

Actual Behavior

On pages like https://beta.p5js.org/reference/p5/for/ the code is all a single color, making it harder to read:

Image

Expected Behavior

Something more like this:

Image

Steps to reproduce

In a jsdoc description in the p5.js repo, include code like this:

```js
for (let i = 0; i < n; i++) {
   // something
}
```

Then build the reference of the p5.js-website

Would you like to work on the issue?

Yes

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions