[plasma/plasma-workspace] interactiveconsole: interactiveconsole: Fix setting javascript as language
Tobias Fella <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 5d04ae656b7f95a8ab06e06cfc5354481a44a4f5 by Tobias Fella.
Committed on 10/08/2026 at 13:14.
Pushed by tfella into branch 'master'.
interactiveconsole: Fix setting javascript as language
M +3 -3 interactiveconsole/interactiveconsole.cpp
https://invent.kde.org/plasma/plasma-workspace/-/commit/5d04ae656b7f95a8ab06e06cfc5354481a44a4f5
diff --git a/interactiveconsole/interactiveconsole.cpp b/interactiveconsole/interactiveconsole.cpp
index 451d0075b6..1d3e11af6a 100644
--- a/interactiveconsole/interactiveconsole.cpp
+++ b/interactiveconsole/interactiveconsole.cpp
@@ -132,7 +132,7 @@ InteractiveConsole::InteractiveConsole(ConsoleMode mode, QWidget *parent)
KTextEditor::Document *result = loadResult.plugin;
- result->setHighlightingMode(QStringLiteral("JavaScript/PlasmaDesktop"));
+ result->setHighlightingMode(QStringLiteral("JavaScript"));
KTextEditor::View *view = result->createView(widget);
view->setContextMenu(view->defaultContextMenu());
@@ -260,7 +260,7 @@ void InteractiveConsole::loadScript(const QString &script)
if (m_editorPart) {
m_editorPart->closeUrl(false);
if (m_editorPart->openUrl(QUrl::fromLocalFile(script))) {
- m_editorPart->setHighlightingMode(QStringLiteral("JavaScript/PlasmaDesktop"));
+ m_editorPart->setHighlightingMode(QStringLiteral("JavaScript"));
return;
}
} else {
@@ -352,7 +352,7 @@ void InteractiveConsole::loadScriptFromUrl(const QUrl &url)
if (m_editorPart) {
m_editorPart->closeUrl(false);
m_editorPart->openUrl(url);
- m_editorPart->setHighlightingMode(QStringLiteral("JavaScript/PlasmaDesktop"));
+ m_editorPart->setHighlightingMode(QStringLiteral("JavaScript"));
} else {
m_editor->clear();
m_editor->setEnabled(false);