is it possible to apply QSyntaxHighlighter to QListWidget?
Yes,, with delegates..
Have a look at QItemDelegate and QStyledItemDelegate. You can use a syntax highlighter in the delegate class and draw the text colored as per the highlighter