custom styling for part of the text

hi! is there a way to give inline stylings to certain parts of the text without having to write a new mode? I want show log messages, like in a console. the closest I see is Shell, but I only want certain parts of the text to be styled. thanks!