Skip to content

Code line highlighting in Prism JS doesn't always appear #777

@jongpie

Description

@jongpie

For some reason, the line highlighting used for Apex code snippets in c/loggerCodeViewer (powered by Prism JS) does not always correctly show up.

  • For LogEntry__c records without an exception, only 1 instance of the component is shown to display origin details. In this case, the line highlighting seems to never really work

    image

  • For LogEntry__c records with an exception, 2 instances of the component are - one for the origin details, and one for the exception details. Typically, these records show the highlighting on both components, but even this is sometimes flaky

    image

My theory is that this is happening because of how/when the PrismJS static resource is loaded, but so far, I haven't been able to fix it.

Metadata

Metadata

Assignees

Labels

Layer: Log ManagementItems related to the custom objects & Logger Console appType: BugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions