I decided to help those fellow developers who are also struggling with code samples posted to vaadin forum.
Here is a small app that strips off all line numbers from code block in a given forum message:
http://uilder.virtuallypreinstalled.com/run/codecopy/
Happy copy-pasting!