Replaced the plain text widget with the pyQode code editor widget, but have not added any extra functionality yet other than the default code editing.