diff --git a/src/plugins/compilerexplorer/compilerexplorereditor.cpp b/src/plugins/compilerexplorer/compilerexplorereditor.cpp index 14abaaed0b1..2fcb4f8f073 100644 --- a/src/plugins/compilerexplorer/compilerexplorereditor.cpp +++ b/src/plugins/compilerexplorer/compilerexplorereditor.cpp @@ -284,9 +284,9 @@ CompilerWidget::CompilerWidget(const std::shared_ptr &sourceSett m_asmEditor = new AsmEditorWidget(undoStack); m_asmDocument = QSharedPointer(new TextDocument); - m_asmDocument->setFilePath("asm.asm"); m_asmEditor->setTextDocument(m_asmDocument); - m_asmEditor->configureGenericHighlighter(Utils::mimeTypeForName("text/x-asm")); + m_asmEditor->configureGenericHighlighter( + TextEditor::Highlighter::definitionForName("Intel x86 (NASM)")); m_asmEditor->setReadOnly(true); connect(m_asmEditor, &AsmEditorWidget::gotFocus, this, &CompilerWidget::gotFocus);