EDIT: Ignore the part about the console warnings; these were not actually relevant to the highlighting issue. The issue was caused by the absence of the 'swift' tag and resolved by another user adding that tag to the question. Credit to CertainPerformance and Laurel for finding the canonical question and resolving the issue!
Today after posting an answer in Swift, I noticed that it has no syntax highlighting at all, which makes it very hard to read as the comments blend right into the code. Initially I assumed it was just being slow to render or that it was a browser problem, but changing browsers (Safari to Firefox) didn't fix it and it is still broken. Looking at a few other recently posted questions and answers, other code blocks seem to be rendering fine (Swift as well as other programming languages). Then I noticed that the original answers to the same question are also missing their syntax highlighting, not just mine.
Has anyone else noticed something like this? Is it possible for individual pages on Stack Overflow to have this feature go down, while it is fine for the rest of the site?
Additional info:
The code block uses the two sets of triple backticks, which is what I've always used and it has always worked until now. I didn't specify the programming language with the html tag at the top of the post like this <!--, but again it has always worked fine without that before. Opening the console for that one page didn't show any errors, but comparing it to a different page that was working correctly, it looks like there are warnings on the broken syntax-highlighting page that don't appear on the other page:
The following functions are deprecated: googletag.pubads().setTagForChildDirectedTreatment(), googletag.pubads().clearTagForChildDirectedTreatment(), googletag.pubads().setRequestNonPersonalizedAds(), and googletag.pubads().setTagForUnderAgeOfConsent(). Please use googletag.pubads().setPrivacySettings() instead.
I don't know what's causing this, since I'm not familiar with that API and don't have any browser extensions enabled other than the antivirus (so no child-specific settings or ad blockers, which is what the warnings seem to be about), but it's weird that it's happening only in one page and not on others on the same site. Is this a known bug?