# \[Forum\] Incomplete or no syntax highlighting support for some languages in code blocks

**URL:** <https://forums.foundationdb.org/t/forum-incomplete-or-no-syntax-highlighting-support-for-some-languages-in-code-blocks/453>\
**Category:** Forums Feedback\
**Created:** [May 23, 2018, 9:10am UTC](https://forums.foundationdb.org/t/forum-incomplete-or-no-syntax-highlighting-support-for-some-languages-in-code-blocks/453 "2018-05-23T09:10:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrzysFR](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/krzysfr/32/43_2.png) [@KrzysFR](https://forums.foundationdb.org/u/KrzysFR)\
**Post date:** [May 23, 2018, 9:10am UTC](https://forums.foundationdb.org/t/forum-incomplete-or-no-syntax-highlighting-support-for-some-languages-in-code-blocks/453/1 "2018-05-23T09:10:23Z")

</div>

The markdown support for this forum does not seem to support syntax highlighting for all language, or is partial for blocks of code.

It would be nice to have the same support as on GitHub, where you can specify the language name after the triple back-quotes.

_Ignore the trailing `|` in the examples below, I was not able to escape the triple back-quotes !_

## Partial syntax hilighting

Java and Python seem to have basic support:

#### Java

````auto
| ```java
| public class HelloWorld {
| public static void main(String[] args) {
| // Prints "Hello, World" to the terminal window.
| System.out.println("Hello, World");
| }
| }
| ```

````

I get _some_ coloring.

```java
public class HelloWorld {
   public static void main(String[] args) {
       // Prints "Hello, World" to the terminal window.
       System.out.println("Hello, World");
   }
}

```

If I omit `java`, now the `HelloWorld` is red, but `out` it bold (?)

```auto
public class HelloWorld {
   public static void main(String[] args) {
       // Prints "Hello, World" to the terminal window.
       System.out.println("Hello, World");
   }
}

```

#### Python

Looks like python is reversed: adding the language identifier disable most highlighting, while no identifier at all seems to give the best results. Is python the default language for code blocks, by any chance?

With:

```python
x = 1
if x == 1:
    # indented four spaces
    print("x is 1.")

```

Without:

```auto
x = 1
if x == 1:
    # indented four spaces
    print("x is 1.")

```

## No highlithing

Other languages like C# or Go don’t have any support it seems:

#### C#

No changes in color with or without the identifier:

With ````csharp` or ````c#`:

```auto
public class HelloWorld
{
   public static void Main(string[] args) {
       // Prints "Hello, World" to the terminal window.
       Console.WriteLine("Hello, World");
   }
}

```

With `````:

```auto
public class HelloWorld
{
   public static void Main(string[] args) {
       // Prints "Hello, World" to the terminal window.
       Console.WriteLine("Hello, World");
   }
}

```

#### Go

No difference for go either:

With ````go`:

```auto
package main
import "fmt"
func main() {
    fmt.Println("hello world")
}

```

With `````:

```auto
package main
import "fmt"
func main() {
    fmt.Println("hello world")
}

```

---

<div class="post-metadata">

**Author:** ![davelester](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/davelester/32/1927_2.png) [@davelester](https://forums.foundationdb.org/u/davelester)\
**Post date:** [May 23, 2018, 9:45pm UTC](https://forums.foundationdb.org/t/forum-incomplete-or-no-syntax-highlighting-support-for-some-languages-in-code-blocks/453/2 "2018-05-23T21:45:38Z")

</div>

Thanks for the detailed feedback. The forums run on Discourse, so I believe this would have to be a feature request directly to that project in order to make such a change.

I was able to add go, csharp, and swift as languages where syntax highlight applies. However, beyond the default highlighting behavior Discourse provides I’m not sure this is something we could change.
