From: Leon W. <moo...@us...> - 2005-10-18 17:42:35
|
Update of /cvsroot/anyedit/AnyEditv2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10857 Modified Files: AnyEditDoc.cpp Log Message: Fixed SetLanguageNr to update SyntaxHighlighting and BraceMatching settings for the new set language. Index: AnyEditDoc.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/AnyEditDoc.cpp,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** AnyEditDoc.cpp 16 Oct 2005 11:58:41 -0000 1.54 --- AnyEditDoc.cpp 18 Oct 2005 17:42:27 -0000 1.55 *************** *** 664,668 **** { m_iLanguage = iLanguageNr; ! UpdateAllViews(NULL, VIEW_SYNTAX); } --- 664,672 ---- { m_iLanguage = iLanguageNr; ! CScintillaEx* pScintilla = GetFirstEditView()->GetScintillaControl(); ! m_bSyntaxHighlighting = theApp.GetFileTypeManager()->GetSyntaxHighlighting(m_iLanguage); ! m_bBraceMatching = theApp.GetFileTypeManager()->GetBraceMatching(m_iLanguage); ! theApp.GetFileTypeManager()->SetScintillaDefaultProperties(m_iLanguage, pScintilla); ! theApp.GetFileTypeManager()->SetScintillaProperties(m_iLanguage, pScintilla, m_bSyntaxHighlighting); } |