i recently altered my comments.php to highlight alternate posts different colours, and also when i wrote a comment, to highlight that a different colour too. I used some code i found in the support forum for the alternate highlighting, and the Author Highlight plugin for highlighting my comments.
to achieve this, i gave the li tag a class and an id, i created the li class and id like this
<li class="<?php echo $oddcomment; ?>" id="<?php author_highlight(); ?>">
where the $oddcomment variables had been defined before.
what i now want to know is, is it possible to create a plugin that would define the class and the id of the li tag in one go, as opposed to two sections.
so you'd end up with something like this
<li <?php admin_alt_highlight(); ?>
which would create an output like
<li class="alt" id="author">
any pointers much appreciated