A small hack to reduce clutter in my init file, but can be potentially used elsewhere too. It will hide source code block markers by changing their ‘invisible’ text property.
Either clone this repo or just download ‘ob-hide-markers.el’. From there you have option to either M-x package-install-file RET ob-hide-markers.el RET or just put the file somewhere where Emacs can find it and do appropriate autoload or require.
M-x org-babel-hide-markers-mode to turn it on/off.
Due to how font-lock mechanism in Emacs works, if fontification is triggered after the markers were hidden, the properties will be removed and markers revealed. For this to work this mode has to run after the font-lock has done it’s processing, so it calls font-lock-ensure before it does it’s work, which might be costly (double-work).
GPL v3. For details, see the atached license file.