I just pushed a somewhat untested implementation of JavaScript commenting to the branch. It's in build 565. Still needs a lot of work and polish. But it's the best I could do by the weekend. :-) Please test.
Usage:
1) alt+c (un)comments single lines with "//"
2) Selecting multiple lines and pressing alt+c will (un)comment them with "/* */"
3) If cursor is inside a multiline comment, "/* */", alt+c will try to uncomment it.
There may be many corner cases that I have not handled correctly. Again I haven't tested extensively. So your feedback is appreciated.
Complete!
johanka:build$ ed
ERROR:dbus.proxies:Introspect error on :1.1051:/net/sourceforge/Scribes: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
File "/home/matej/.bin/ed", line 11, in <module>
main()
File "/usr/lib/python2.6/site-packages/SCRIBES/Main.py", line 7, in main
__open()
File "/usr/lib/python2.6/site-packages/SCRIBES/Main.py", line 20, in __open
__open_via_dbus(uris)
File "/usr/lib/python2.6/site-packages/SCRIBES/Main.py", line 31, in __open_via_dbus
dbus_service.open_files(uris, dbus_interface=scribes_dbus_service)
File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
johanka:build$
Sorry, forget about the last comment ... scribes apparently is not happy when you try to run new version and the old version is still running. Seems to work (just a very little testing)
alt+c comment and uncomments lines. It's only been implemented for a few languages (Python, Ruby, Perl, Bash, etc).