Line numbers in code blocks

I don’t know if this is possible in the Unity Discussions framework, but it would be helpful if code pasted in the Preformatted Text blocks contained line numbers similar to the normal forums.

Line numbers make it easier to refer to sections of the code and to find the line numbers that contain errors when someone posts an error message.


Never really thought of that, but that would be incredibly helpful. Especially when people want help with certain lines of code, but need to share the whole script. Hopefully this get added.

1 Like

Hi, yes, we will enable line numbers in one of the next updates. I can’t provide a date yet, though.