When posting code excerpts, you can use the “Preformatted text” feature.
But depending on the length of the excerpt it’s not always trivial to read. Can you somehow annotate what kind of syntax highlighting should be used? (i.e. DAML, Java, C#, etc?)
You can add the language name after the triple backticks at the beginning, e.g.,
```java
public class HelloWorld {
public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
System.out.println("Hello, World");
}
}