We can use the

 tag for pre-formatted text!

Example:

  public void foo() {
    console.log("Hello world!");
  }