I've applied a style around my "get_category" as below;
<span class="<?php $category = get_the_category(); echo $category[0]->category_nicename; ?>-highlight">
<?php the_category(',') ?></span>
The problem is this applies the same style to all the categories listed. Can I do something like this...
<span class="<?php $category = get_the_category(); echo $category[0]->category_nicename; ?>-highlight">
<?php the_category('</span>, <span class="<?php $category = get_the_category(); echo $category[0]->category_nicename; ?>-highlight">') ?></span>