Error from Error Analyzer
View in Error Analyzer
Root Cause
formatCode() calls Prism.highlightElement() but Prism.js is loaded asynchronously via loadPrism(). The formatCode function can be invoked via input or submit event handlers before the async script load completes, causing a ReferenceError.