Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2694

Syntax highlighting for "hpp" extension

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • None
    • None
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jens@atlassian.com jens
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: