Depending on what theme you use, there might be a setting for it in Style Settings. Best to change it there so it doesn’t look funky with light/dark themes. If not, this snippet works: color
is the text color (commented out here) and background-color
is the highlight color.
.cm-s-obsidian span.cm-formatting-highlight, .cm-s-obsidian span.cm-highlight {
/*color: purple;*/
background-color: pink;
}
.markdown-preview-view mark {
/*color: purple;*/
background-color: pink;
}