This is an tampermonkey or greesemonkey script which enhances the SPARQL endpoint of the Publication Office of the EU with Codemirror highlighting editor.
To install you need to have a Tampermonkey https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo for Chrome or https://addons.mozilla.org/en/firefox/addon/greasemonkey/ for Firefox. Then click on this link: https://raw.githubusercontent.com/lbehal/Sparql/master/eusparql.user.js
Besides the highlighting feature there is also a button for reformating the query. FROM:
To