Formatting lyrics syllables
The \markup command can be used in \lyricmode blocks to format individual syllables in lyrics.
\version "2.24"
mel = \relative c'' { c4 c c c c1 }
lyr = \lyricmode {
Your lyrics \markup { \italic can }
\markup { \with-color #red contain }
\markup { \fontsize #8 \bold Markup! }
}
<<
\new Voice = "melody" \mel
\new Lyrics \lyricsto "melody" \lyr
>>