#5271 Comment syntax highlighting broken/disabled?
Opened 3 years ago by ferdnyc. Modified 11 months ago

What's up with the syntax highlighting for language-fenced code blocks inside issue/PR comments? At least on my screen, I'm currently not seeing e.g. the following with any syntax highlighting:

class ExtensionPrefsMenu(GObject.Object, Gedit.WindowActivatable):
    __gtype_name__ = "ExtensionPrefsMenu"
    window = GObject.property(type=Gedit.Window)

    def __init__(self):
        GObject.Object.__init__(self)

    def _add_ui(self):
        manager = self.window.get_ui_manager()

...This is despite the fact that I've fenced it as ```python3 ... ```. If I bring up the page structure in the inspector, I can see that the source is tokenized fully, and all of the individual spans are applied that should cause it to be highlighted... but it doesn't appear that the (Pygments? — nope, highlight.js) CSS is getting loaded to actually apply the highlighting on those spans.


Metadata Update from @wombelix:
- Issue set to the milestone: 6.x
- Issue tagged with: UI, bug

11 months ago

Log in to comment on this ticket.

Metadata