A Florida inmate smiled and laughed in court as a judge gave him a life sentence for killing his cellmate by stabbing him in the head with a pen.