Im sure many of my peers on this channel may use `...
# announcements
m
Im sure many of my peers on this channel may use `Bitbucket`™ or have in the past. I’ve noticed that Kotlin syntax highlighting is missing from when reviewing
.kt
files unless you go into edit mode. I’m not sure how they prioritize their own issues but this one has been opened since June, maybe if we all go an upvote it they may get around to resolving this annoyance. https://bitbucket.org/site/master/issues/16513/kotlin-syntax-highlighting-not-working
s
Hmm, we use Bitbucket on my current project, and I don't have this issue. But we're using a self-hosted solution, perhaps that's different then? Usually they're behind in functionality, though, not ahead. 😕
m
I just looked at my work server (not sure where I see version) and it doesn’t have highlighting for kt files either. It’s funny that I’d never noticed this before. I wonder if it’s server configuration, then, although if that was the case, I’d expect Atlassian to have suggested that already. If I look directly at a source file (navigating via source/commits), then there’s highlighting, but yes, looking at files in a PR, and the text is not highlighted (other than the Diff highlighting).
I also notice they’ve made the component Online Editor, but that’s not the issue.
s
Oh, sorry, then I misunderstood the issue. I thought it was about the file viewer, not diffs. But are any diffs actually showing syntax highlighting, though? I'm not seeing that for XML files either, only the green lines for additions and red lines for deletions. 😕
The same is true for Gradle (Groovy) files. No actual syntax highlighting in diffs, only green and red lines.
The only exception to this, as far as I can see, is when an entire file is added (and possibly removed, I don't have a sample of that in front of me). In that case, the entire background of the file is green and the code is highlighted as Kotlin.
m
Hmm, ok. We’ll have to let @mvbrenes let us know if he was referring to PR review, or viewing in general, because I also see code highlighting when just viewing a source file, but not in a PR. And as you said, that appears to be by design so one can focus on diff highlighting only.
👍 1
m
I’m observing this issue in source viewer for personal projects on standalone web version. In our own hosted solution for my day job we do see the highlighting, it is also referred to as Stash, I assume they’re the same product just different names as we use the Atlassian suite. Like was said previously PR diff viewer does not have it but I think that’s by design.