From e5de0c6d44ffcfe4dc66e5fb679ca94731e0c8a4 Mon Sep 17 00:00:00 2001 From: dail8859 Date: Tue, 28 May 2019 21:17:08 -0400 Subject: [PATCH] Set embedded ASP default language to VB Closes #5702, Closes #5677 --- PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index a244c6220..a4bf8bce8 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -745,6 +745,8 @@ void ScintillaEditView::setEmbeddedAspLexer() keywordList = wstring2string(kwlW, CP_ACP); } + execute(SCI_SETPROPERTY, reinterpret_cast("asp.default.language"), reinterpret_cast("2")); + execute(SCI_SETKEYWORDS, 2, reinterpret_cast(getCompleteKeywordList(keywordList, L_VB, LANG_INDEX_INSTR))); execute(SCI_STYLESETEOLFILLED, SCE_HBA_DEFAULT, true);