It's not really possible to change N++ settings from a plugin (at least, not without a restart). Python indent looks good, just had a play. I've created a Google Code page for them here. For example, is it possible to disable Notepad++'s default auto-indent from a plugin? My plugin works correctly regardless of the setting, but it causes an extra action to be inserted into the undo queue if Notepad's autoindent is on. I don't know how to detect or change Notepad++'s settings from a plugin. I've tried to make them cooperate sensibly with Notepad's settings, but I don't think its perfect. (For multiple lines, tab is always inserted) Second, if you insert a tab anywhere in the indentation part of a line (which is considered to be from the beginning of the line to the first non-tab) it will insert a tab, otherwise it will insert spaces. First, when you insert a new line it will exactly copy the preceding indent, instead of turning tabs to spaces or vice-versa. The second is a plugin I wrote to support using tabs for indent and spaces for alignment. It just looks for one of the appropriate keywords at the start of the line and indents one level in on the next line. The first is an auto-indenter for Python, because I couldn't find one. I wrote a couple plugins, I figured I may as well share them:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |