addin that comments code,please help!!
-
i want to write a simple addin for VS.NET, which comments(like //##MYNAME**NR2003##//) the selceted lines of code. this is all finde and easy, but i have now a hughe problem: if "selction margin" is switched on (under tools/ options/texteditor), then the addin does not work properly, when selecting code, that contents of outlined code. when i make things like: pTextSelection->get_CurrentLine(&lCurrLine); pTextSelection->get_TopLine(&lTop); pTextSelection->get_BottomLine(&lBottom); i get only the linenumbers of the code currently visible on the screen. but i also want the numbers of the lines who are outlined! how can i do this???? i didnt found any function! the only function i found is the one to outline code (->OutlineSection) but i would like to do the contrary!!! please help me! thanx, andreas