Is it possible to show line numbers in code block?

Yes. Also, on installations where lines actually break (rather than triggering horizontal scroll), seeing line numbers make it clear long lines have wrapped.