swingger.blogg.se

Notepad++ python comment block
Notepad++ python comment block











notepad++ python comment block notepad++ python comment block

# fix: The area which needs to be styled is wrongly calculated if there are folded parts within this area (Eko palypse) Start_line = editor.getFirstVisibleLine() Here’s the script, to be used as pythonscript startup script: # -*- coding: utf-8 -*-įrom Npp import editor, editor1, editor2, notepad, NOTIFICATION, SCINTILLANOTIFICATION, INDICATORSTYLEĬls._instance = super(SingletonEnhanceUDLLexer, cls)._call_(*args, **kwargs) Please tell us, if you need help installing or using the pythonscript plugin. If it eases a bit: at least i finally understand exactly what you need, regarding one line block comments and using ((EOL)) as part of a styler/delimiter string played around a bit with the pythonscript plugin to add/compensate this feature to the dsm4com udl and i think i got it working the way you need.īlock-comments in a single line are marked red, but all other line or block-comments are kept green. I hope that one of our community’s udl gurus or devs will read this thread in the next few days and finds a trick to solve this specific problem. Third because udl does not have any negation or cascaded rules like “must be more than one line” or “trigger if x is found, but not if y is missing”. Second because ((EOL)) can apparently only be used as a stand alone item, and not be used as part of a string. Unfortunately i’ve reached the end of my knowledge on if it can be done, and how to do that if it can be done.įirst because the udl’s styler rules work as cases, so once a case is found, they will not look if any other styler rule can be applied (except nesting rules) This restriction will disappear shortly, it’s a necessary and automatic spam prevention. Had to wait because as a new user I can only write every 20 minutes.













Notepad++ python comment block