Add line numbers for code examples in user guide
Merge branch 'hotfix/1005'

Close #1005
Fixes #876
Merge pull request #1003 from froschdesign/hotfix/line-numbers-in-user-guide

Add line numbers for code examples in user guide
Merge branch 'hotfix/1003' into develop

Forward port #1003