if startup (User) exists, then Ctrl+Click on startup (User).\plugins\Config\PythonScript\scripts folder, and create, which will bring it into editor if all you see is startup without a startup (User), then Plugins > Python Script > New Script, call it startup.py, make sure it’s in the.Look for Plugins > Python Script > Scripts > startup (User).Install PythonScript plugin ( Plugins > Plugins Admin, then toggle the ☑ Python Script to on click Install).It puts the lines before the Sub XXX, rather than after the End Sub… but maybe that’s close enough for If so: tFoldFlags(FOLDFLAG.LINEBEFORE_EXPANDED|FOLDFLAG.LINEAFTER_CONTRACTED) will make it draw that same line inside the Sub when the Sub is folded, but it will draw it above the Sub when the Sub is not folded (is expanded). It looks like, by default, Notepad++ sends SCI_SETFOLDFLAGS with a setting of SC_FOLDFLAG_LINEAFTER_CONTRACTED, which is what draws the horizontal rule inside the folded Sub: the missing line 6 in my second image above, repeated here:īut with PythonScript, we can change that behavior. With the PythonScript plugin, you can send certain messages to the editor (Scintilla). Then again, maybe it would just be sufficient for the OP to just use View > Fold All or View > Collapse Level > 1: the horizonal lines would be drawn on each sub, and give the visual separation and then unfolding the sub of interest would allow one to edit that function and turning on View > Function List panel would help with navigation to the desired , Someone who was willing to dig into the NPP and SCI source codes could probably find it. … but I don’t know whether that’s an inherent part of the Scintilla code folding, or whether Notepad++ added that flourish after-the-fact. I know that Notepad++ can get the horizontal line drawn somehow – if I collapse Sub B in that example, you can see it: I was able to get an indication of the end of the sub, but not the whole thing, because indicators only extend to the end of the matched text, not the full width: I converted EnhanceAnyLexer.py to use that INDICSTYLE.DIAGONAL instead, and set it up… vb_regexes = _dict() My original thought was using indicators, with one of the underlining INDICSTYLE values. It would probably have to be written – or maybe have that feature added to an existing plugin that helps with VB/VBA development (if such a plugin existed, you could ask the author of that plugin if they would implement the additional you have some ideas on how the scripting plugin would “draw the line”? With that said, do you know of any plug in?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |