You also have the option to add a staff notice (the option is right below staff color), which will add a separate little section like this above any post:
If you really want custom code for only some content in a post you can do that too with a some customization (Generic bbcode wrapper for theme components).
So for example, if I wanted to highlight only some text I can wrap some text in my post
[wrap=mod-color]
This is my official moderator warning!
[/wrap]
Then in your theme’s custom CSS you can add this (admin > customize > themes)
.topic-post.group-team [data-wrap="mod-color"] {
background: yellow;
color: red;
}
The important thing to note with this method is that to prevent normal users from using the same code you’ll need to create a new group, and that group would have to be the moderator’s primary group (primary group is configurable from an individual user’s admin page). In my example above I’m using a group named “team”, which is where .group-team
comes from.