• Icon: Suggestion 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.

      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
      

            [BSERV-2694] Syntax highlighting for "hpp" extension

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3395801 ] New: JAC Suggestion Workflow 3 [ 3623929 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: BSERV Suggestions Workflow [ 2686034 ] New: JAC Suggestion Workflow [ 3395801 ]
            Owen made changes -
            Workflow Original: Stash Workflow [ 403602 ] New: BSERV Suggestions Workflow [ 2686034 ]
            Status Original: Closed [ 6 ] New: Resolved [ 5 ]
            Stefan Saasen (Inactive) made changes -
            Fix Version/s Original: 1.3.0 [ 27908 ]
            Affects Version/s Original: 1.2.2 [ 28007 ]
            Assignee Original: ArvindA [ akunday ]
            Issue Type Original: Improvement [ 4 ] New: Suggestion [ 10000 ]
            Priority Original: Minor [ 4 ]
            ArvindA made changes -
            Remote Link New: This issue links to "Wiki Page (Extranet)" [ 24767 ]
            Seb Ruiz (Inactive) made changes -
            Fix Version/s New: 1.3 [ 27908 ]
            Resolution New: Fixed [ 1 ]
            Status Original: To be reviewed [ 10026 ] New: Closed [ 6 ]
            ArvindA made changes -
            Status Original: In Progress [ 3 ] New: To be reviewed [ 10026 ]
            ArvindA made changes -
            Remote Link New: This issue links to "Stash › Master › STASH-2694 (BEAC)" [ 23098 ]
            ArvindA made changes -
            Remote Link New: This issue links to "Wiki Page (Extranet)" [ 23078 ]
            ArvindA made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]

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

                Created:
                Updated:
                Resolved: