-
Suggestion
-
Resolution: Fixed
-
None
-
None
-
None
We should add syntax highlighting for hpp extensions to Stash.
The syntax highlighting is applied based on the rules set at the following javascript file:
./webapps/ROOT/static/feature/file-content/source-view/source-view.js
To mave "hpp" recognized as C++, you can open the file and locate the following line:
cpp : { exts : ['cpp', 'h', 'c', 'cc', 'cxx'], exes : []},
Then add the new hpp extension to the list:
cpp : { exts : ['cpp', 'h', 'c', 'cc', 'cxx', 'hpp'], exes : []},
And save the file.
This file is bundled to the batch.js which is cached by our js injection plugin. So to make sure the new version of the js file will be used, please remove all the content of the following folder and then restart Stash:
STASH-HOME/caches/webresources