In my opinion, PSPSad is a great HTML editor, but it is at the same time a great
programmers' editor, and a great editor-for-everything.
If Jan adds one more button at everybody's taste, PSPad will eventually end up
useless for everybody, because we all get lost in thousands of symbols on
hundreds of toolbars, most of which every single user will never need.
Configurable toolbars would be great, of course (this is one of the things I
like in MS Word and similar programs). But this means hours and hours of work.
Are you ready to do it?
If you ask me, PSPad is a close-to-perfect general-purpose editor. It enables me
to edit HTML, PHP and whatever, to write my little programs in whatever language
I want (with very good syntax highlighting, external programs and such), and to
edit text very conveniently.
If you ask me, the very strength of PSpad is its configurability for almost
every kind of purpose. To add many more features would at the same time put its
usefulness for other purposes at risk. In short: If you want a good
general-purpose editor, get PSPad; if you want a good specialised HTML (or more
general: web) editor, look elsewhere (MAX's HTML Beauty, for example).
Hope this didn't sound too harsh, only a personal opinion. :-D
And a script that will hopefully serve your purpose:
Option Explicit
const module_name = "makecomment"
Sub Main
Dim myeditor, currenttext
Set myeditor = NewEditor
myeditor.assignActiveEditor
currenttext= myeditor.selText()
myeditor.selText("<!-- " & currenttext & " -->")
End Sub
Sub Init
addMenuItem "Make HTML comment","HTML", "Main", "Ctrl+Shift+c"
End Sub
--
<http://forum.pspad.com/read.php?2,31177,31249>
PSPad freeware editor http://www.pspad.com