A read-only editor can still be scrolled, selected and copied from. Takes editor (An editor handle), readOnly (True to stop editing, False to allow it).
editor
Int
readOnly
Int
igiCodeEditorSetReadOnly(viewer, True)