How to add line numbers to code blocks?

A post was merged into an existing topic: Code-block line numbers