Warmo - 2008-05-03

Hello,
A long time ago I found 2 bugs in npp v4.5 or even earlier, they are also exist in current release – 4.9.

1.Quick comment shortcut (ctr+q) doesn't work in SQL files. Commented tex should look like this: “-- some test”. Multi-line comment shortcut (ctr+shift+q) works fine.

2.Multi-line comments doesn't colapse in PHP, JS and SQL files.

I also want to point out that sometimes, when I have a lot of files opened (20 or more), after several minutes of work, npp start to use 99% of my CPU power. I suppose that some plugin can cause the problem, because when I try to run npp without any plugins CPU usage was normal.

I have big request to you Don. Could you add possibility to seting new keywords types in existing languages. I've tried to edit langs.xml and stylers.xml files to achieve that.

I added this line to langs.xml (in <Language name="php"...):
<Keywords name="instre2">my_keyword</Keywords>
and this to  stylers.xml (in <LexerType name="php"...):
<WordsStyle name="WORD2" styleID="127" fgColor="0000FF" bgColor="FFFFF5" fontName="" fontStyle="0" fontSize="" keywordClass="instre2">other_keyword</WordsStyle>

New keyword group appear in the “Style configurator”, but colours of my custom keywords didn't change. Look at the screen: http://warmo.drivehq.com/images/npp_custom_keyword.png.
If there is some method to do it without changing source code, please give me a hint, if not please consider implementing this, or at least tell me what should I change in source code and where to find it (function names, line numbers).
You could also consider possibility of making custom language using existing one as a template or just option to edit existing language in current “User define language” GUI.

I have also some other minor feature requests:
- javadoc (/**...*/) comments style in other languages than Java, PHP in my case.
- shortcut, or option in menu to quick hide (collapse) multi-line comments or javadocs.
- initial collapsing some elements (functions, methods, comments etc.) like in Eclipse.
- inline CSS coloring in HTML or PHP files (between <style> tags)
- JS comments (“//” or “/*...*/”) between <script> tags  in HTML files using ctrl+q and ctrl+shift+q shortcuts (now there are standard HTML comments).

Thanks for the great work!
Regards,
Warmo