Adds ability to set classes on the span tags instead of inline styles

First of all thanks for this project, it's awesome. I'm using it in a project of my own and want to be able to let users pick themes for the output colour hence adding class support. I haven't added any additional tests but all the existing ones pass.