You can't. That's why you have a "selected text" setting - it's not for fun with extended settings being hidden elsewhere.
The only editor I know which maintains syntax highlighting when selecting text is Notepad++ - not even Eclipse has this feature, not to speak of other editors. From which software are you used to have this?