Tip: How to embed Haxe code in a post

Hey everyone,

Just a quick tip – to embed Haxe code, type three “backtick” characters then the word “haxe”

Afterward, type your code.

On the next line afterward, do three more backtick characters.

It should look like this (when you are typing):

```haxe
var hello = "World";
```

It works for a lot of languages:

###haxe

package;

class HelloWorld {
    
    public function new () {}
    
}

###as3

package {
    
    public class HelloWorld {
        
        public function HelloWorld () {
            
        }
        
    }
    
}

###xml

<hello world="" />

###bash

echo "Hello World"

and many more :dealwithit:

Happy chatting, and thanks everyone!

7 Likes