示例#1
0
        void Connect_DocumentOpened(Document Document)
        {
            StaDynParser parser = new StaDynParser();

            parser.parseAll();
            //Document.Activate();
            SourceHelper.refreshHighlighting(Document.FullName);
        }
示例#2
0
        public int OnAfterSave(uint docCookie)
        {
            //StaDynParser parser = new StaDynParser();
            //parser.parseAll();

            SourceHelper.refreshHighlighting();

            //Must save file again because refreshHighlighting "dirties" the code.
            string file = FileUtilities.Instance.getCurrentOpenDocumentFilePath();

            FileUtilities.Instance.SaveDocument(file);

            return(VSConstants.S_OK);
        }