jEdit Community - Resources for users of the jEdit Text Editor
Toggle comment instead of insert comment
Submitted by ZortTheMighty on Friday, 9 February, 2007 - 23:26
Could you please change the Line Comment (Edit > Source > Line Comment) and Block Comment (Edit > Source > Block Comment) actions to toggle comments instead of simply adding them. i.e. If the selected text is already marked as a comment then remove the comment marking.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
I tried to map/bind the keys
by kiran1234 on Mon, 31/05/2010 - 10:33
I tried to map/bind the keys in Window-Preferences-Keys but it didn't had any effect. Command "Toggle Comment" is bind to CTRL+SHIFT+C but it invokes "Content Assist" command.

Can somebody please investigate and help?
Thanks!
seo software
Toggle comment instead of insert comment
by lefty on Sat, 10/02/2007 - 16:51
See the text tools plugin. I think that may do what you are looking for.
 
I think text tools is a no go
by ZortTheMighty on Mon, 12/02/2007 - 09:01
I tried that. The comments that said to try the text tools plugin were about 3 years old. It looks like the currently available versions don't include the toggle comment feature. The older versions don't seem to be available.
 
TextTools
by Robert Schwenn on Sun, 25/02/2007 - 21:16
TextTools do exactly what You want (among other things)! If the TextTools Plugin is installed, there are these two actions available:

1. toggle-line-comment
2. toggle-range-comment

You can invoke them at the action bar or from the menu Plugins->TextTools->...

Robert
 
> 1. toggle-line-comment I
by lg on Tue, 06/10/2009 - 06:56
> 1. toggle-line-comment

It doesn't seem to work. If I either place the cursor on a line or select the whole line and try to toggle a line comment in an xml file nothing happens.
 
Each jEdit mode knows: 1. a
by Robert Schwenn on Tue, 06/10/2009 - 17:34
Each jEdit mode knows:
1. a line comment string (i.e. "//") which is placed at the beginning of a line and comments out the whole line
2. a begin and end comment string (i.e. "/*" + "*/") which are enclosing a block of text to comment out

The toggle-line-comment action only toggles the line comment string, but for XML there isn't one...

Robert
 
^works. thanks
by homeathouse on Thu, 23/10/2008 - 13:17
^works. thanks
User login
Browse archives
« September 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   98100
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300