pyqt5 qtextedit set selected text background to another color code example
Example: pyqt5 qtextedit change color of a specific line
QTextEdit.setTextColor(QtGui.QColor('#FFFFFF'))
QTextEdit.setTextColor(QtGui.QColor('#FFFFFF'))