Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-20116

Syntax highlighting for .clj (clojure) files does not work correctly when viewing the file

    XMLWordPrintable

Details

    Description

      Issue Summary

      The syntax highlighting does not work while viewing the Clojure file.
      It works perfectly fine when editing but when viewing the file the syntax highlighting does not work.
       

      Steps to Reproduce

      1. Create a sample clojure(.clj) file.
      2. View the file in the repository source.
      3. We see that the syntax highlighting is not working.

      Expected Results

      Syntax highlighting should work while viewing the file. Currently, it works only while editing the file.

      Actual Results

      Syntax highlighting does not work while viewing Clojure files 

       

      I understand that Bitbucket Cloud UI uses Monaco editor for viewing files and CodeMirror editor for editing the files.

      Even though the Monaco editor supports Clojure syntax, Bitbucket UI does not support it. 

      Monaco editor: https://microsoft.github.io/monaco-editor/.

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dbhat@atlassian.com Dheeraj (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: