Multiline Code Blocks

The <pl-code> tag can be used to enclose multiline code blocks in a question.html file. Here is an example:

<pl-code language="java">public class Node {
    public int val;
    public Node next;

    public Node(int val, Node next) {
        this.val = val;
        this.next = next;
    }
}</pl-code>

Image

To add line numbers, modify the <pl-code> tag like this:

<pl-code language="java" show-line-numbers="true"> ... </pl-code>

You can access the official documentation for this question element here.