diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index 1319a4c27..d2649ffaf 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -644,6 +644,8 @@ void ScintillaEditView::setXmlLexer(LangType type) execute(SCI_SETKEYWORDS, i, reinterpret_cast(TEXT(""))); makeStyle(type); + + execute(SCI_SETPROPERTY, reinterpret_cast("lexer.xml.allow.scripts"), reinterpret_cast("0")); } else if ((type == L_HTML) || (type == L_PHP) || (type == L_ASP) || (type == L_JSP)) {