The 18-year-old boy accused of killing a fellow pupil with a sword has pleaded guilty to all the charges against him in the Johannesburg High Court.