Demos: Fix text selection in "View Source" popup code view

Fixes gh-7856