Mojo syntax highlighting now supported in the forum

The forum now supports Mojo syntax highlighting! To highlight your code as Mojo, just add the mojo tag next to your initial backticks

struct MyPair:
    var first: Int
    var second: Int

    fn __init__(out self, first: Int, second: Int):
        self.first = first
        self.second = second

      fn __copyinit__(out self, existing other):
        self.first = existing.first
        self.second = existing.second

    def dump(self):
        print(self.first, self.second)

Note that the syntax highlighting isn’t perfect, so please share feedback as you notice areas that could be improved.

7 Likes