Do some string replacement "# My comment" => "hugocomment = "My comment" => and back. Ignore the last step for JSON (which does not support it).