Install Scala highlighting on BitBucket
Bitbucket Scala Highlighting Extension
This package installs Scala highlighting while you are browsing on Bitbucket. Hopefully Atlassian will fix this natively at some point; to see progress on that, monitor https://jira.atlassian.com/browse/BCLOUD-16282. This extension is a workaround that can be used in the meantime.
The underlying problem is that parts of Bitbucket are using an old version of the Monaco code editing framework. On those parts, Scala files will render as plain text and will not have any syntax coloring. To address the problem, this extension installs parts of the latest version of Monaco on the fly.
This extension only takes effect on bitbucket.org, and it only takes effect if it sees the monaco editor being loaded.
Read more
The underlying problem is that parts of Bitbucket are using an old version of the Monaco code editing framework. On those parts, Scala files will render as plain text and will not have any syntax coloring. To address the problem, this extension installs parts of the latest version of Monaco on the fly.
This extension only takes effect on bitbucket.org, and it only takes effect if it sees the monaco editor being loaded.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Bitbucket Scala Highlighting", "description": "Install Scala highlighting on BitBucket", "version": "1.0", "icons": { "16": "images/scala-16.png", "32": "images/scala-32.png", "48": "images/scala-48.png", "128": "images/scala-128.png" }, "content_scripts": [ { "js": ["scripts/monaco-scala-inject.js"], "matches": [\t "https://bitbucket.org/*" ] } ], "web_accessible_resources": [ { "resources": [ "scripts/monaco-scala.js" ], "matches": [ "https://bitbucket.org/*" ] } ]\t}
Read more