Code colorizing bug


#1
(
var quarksDir = Platform.userAppSupportDir +/+ "downloaded-quarks";
if(File.exists(quarksDir).not) {
	File.mkdir(quarksDir);
};
quarksDir.openOS;
)

Or

a +/ b
c / d

The colorizer seems to recognize +/ as the start of some sort of multiline element, closed by a / later.

Can this feature be switched off?

hjh


#2

you can turn off syntax highlighting for a block by telling markdown to interpret as plain text:

```plain
a +/ b
```

the syntax highlighting library, highlight.js, does not currently support supercollider.


#3

OK, thanks. Pity we can’t hack up our own copy of highlight.js.

hjh


#4

I opened a PR to their repo to add support. I haven’t checked on it recently but IIRC it is almost ready to merge, and just waiting on me (oops!).

Brian