Syntax highlighting not working for Odin programming language code blocks

I am well-versed inserting code blocks into my markdown for various languages and the syntax highlighting is working for all other languages without a problem. Specifying

```odin
...code here...
```

gives me raw text back

I edited your code to put quadruple backticks so your triple backticks show in the code snippet.

It works in Reading Mode.

You can see this older thread for some discussion. Not all languages will show up as color-highlighted in Live Preview. I don’t know the exact details. The editor is CodeMirror, and Reading Mode is prismjs.

```odin
control_flow :: proc() {
	fmt.println("\n# control flow")
	{ // Control flow
		// For loop
		// Odin has only one loop statement, the `for` loop

		// Basic for loop
		for i := 0; i < 10; i += 1 {
			fmt.println(i)
		}

		// NOTE: Unlike other languages like C, there are no parentheses `( )` surrounding the three components.
```

Reading Mode:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.