How to show line numbers of the colde blocks?

How can I change custom.css so that whatever theme I’m using, it shows the line numbers of the code blocks?

BTW, I’m using Bear theme now (before I was using Dev theme and it natually had the line numbers shown for the code blocks).