See https://www.npmjs.com/package/highlight-loader . It would take a bit more Webpack config. Maybe sites themselves should be able to tweak the basic conf?