هل تريد تعطيل تمييز بناء الجملة؟

Is there a way to have a code block (ie tree backticks) without syntax highlighting? Like a “none” language? Eg for pseudocode or the like without defined syntax.

for each file in folder
   do stuff
إعجاب واحد (1)

You can delete all the entries in the setting highlighted languages

Also using the 4 spaces to indent avoids highlighting.

for each file in folder
   do stuff
4 إعجابات

Umm, no, that’s not what I had in mind - I like the highlighting in general, I just want a way to disable it in a particular case.

It seems like specifying no language, or any language, or an invalid language all get some for of syntax highlighting.

Maybe there is some other setting I have misconfigured?

Yes, it tries to auto-detect a language.

You will want to use the 4 spaces to indent if you don’t want highlighting. (see my edited post above)

You simply hint the block with text

إعجاب واحد (1)

So as in three back ticks and the “text”?

I see that works here, but not on my forum, is that something recent? Or do I need to add it as a language?

```text
 foo
```

is what you need to do, that’s what “hinting” means

5 إعجابات

Yes, “text” was what I needed to know. And it didn’t work on my site for the same reason I failed at code blocks last time - four back ticks. Sigh.

Thanks.

4 إعجابات

This topic was automatically closed after 2944 days. New replies are no longer allowed.