Original sentence: 1999-2000  Freaks and Geeks  Nick Andopolis  Co-Star;  18 episodes.2001  North Hollywood  Leon  Series regular; unaired pilot.2001-2002  Undeclared  Eric  Recurring guest star;  7 episodes.2004  Harry Green and Eugene  Eugene Green  Series regular; unaired pilot.2004-2005  CSI: Crime Scene Investigation  Neil Jansen  Recurring guest star; 3 episodes.2005  Alias  Sam Hauser  Guest star; 1 episode.2005-present  How I Met Your Mother  Marshall Eriksen  Co-star; all episodes to date.Year  Title  Role  Notes
Edited sentence: {| class="wikitable".| 1999-2000 || Freaks and Geeks || Nick Andopolis || Co-Star;  18 episodes.| 2001 || North Hollywood || Leon || Series regular; unaired pilot.| 2001-2002 || Undeclared || Eric || Recurring guest star;  7 episodes.| 2004 || Harry Green and Eugene || Eugene Green || Series regular; unaired pilot.| 2004-2005 || CSI: Crime Scene Investigation || Neil Jansen || Recurring guest star; 3 episodes.| 2005 || Alias || Sam Hauser || Guest star; 1 episode.| 2005-present || How I Met Your Mother || Marshall Eriksen || Co-star; all episodes to date.| 2009 || Family Guy || As himsef playing Marshall Eriksen || Guest star; 1 episode.|- bgcolor="#CCCCCC"