I have a repository for an Erlang project and when browsing the files on bitbucket there is no syntax highlighting. I have come across an identical issuer for Scala:
As for issue above, Erlang syntax highlighting works fine in the online editor, just not when viewing files normally.
I was wondering how many others are experiencing this? What languages have working highlighting when browsing files? Which don't?
This is kind of just a minor annoyance, but if enough people are annoyed maybe atlassian will fix it.
Thanks,
Will
Hello Will and welcome to the Community!
Thanks for coming to Community with your syntax highlighting issues you’re seeing within Bitbucket cloud. Atlassian uses pygments library for syntax highlighting. With this said, there are some known issues which may be causing your files to not be highlighting properly, such as:
Causes & Workarounds
- At the moment we have a restriction on the size of files we highlight and it is set to 100 KB.Files larger than that will be rendered as plain text and will not be highlighted.The workaround at the moment is to keep the files at a size smaller than 100 KB.
- If your file gets properly highlighted in pygments demo, but not in Bitbucket website, and it is less than 100 KB, you may open a request with Bitbucket Cloud Support.In case your file does not get highlighted in pygments demo either, you can open an issue in their issue tracker.
Source documentation: Troubleshoot syntax highlighting issues in Bitbucket Cloud
As for the Syntax highlighting issues for scala files, there is a feature request which may be found at BCLOUD-16282. If this issue is impacting you, we would ask you to vote and watch this request to receive future updates to its status.
I hope this information proves helpful and addresses some of the issues you’re having with syntax highlighting.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.