[Editor] [Code] Created a function to check if a given line is in a comment.