Notepad++: block comment not working

泪湿孤枕 提交于 2019-12-10 03:24:00

问题


I am running Notepad++ 5.8.5 on Windows 7, editing Perl programs. I would like to comment out a block of text lines (and later, perhaps, uncomment it).
None of the following works: CTRL+K, CTRL+Q, CTRL+shift+K, CTRL+shift+Q,
selecting the block of lines and going to the menu: edit-> Comment/Uncomment -> Block Comment


none of the above has any effect.
What to do?


回答1:


Why not try updating to a newer version? That's horribly out of date (a year old).




回答2:


Is NP++ interpreting your file as Perl or plain text?

If NP++ is treating your file as plain text, then language specific things like that won't work.

You may want to double-check that as described here.




回答3:


Define your own language to match to the file extension, in your case it is: txt and then define any comment style you want. Then close and open NP++ again. Enjoy!

Path: Language--->Define your Language --> Comments & Number tab Hank Wei



来源:https://stackoverflow.com/questions/9838875/notepad-block-comment-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!