# as a character has special significance to the markdown language used for the forum software used here. You need a backslash character in front of it in order to show the line commented out. However by non-pointless lines I meant don’t even show comments or blank lines. For example
grep -v ^# /etc/apt/sources.list
will strip out comments.