tuliob / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Using control + slash to comment always injects "//" on all programming languages #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I used the XML editor (or any language)
2. I highlight some text
3. I pressed control + "/"

What is the expected output? What do you see instead?
For the XML editor, I would expect the text to be commented using <!--
comment -->.  Instead, it tried to comment using "//".

What version of the product are you using? On what operating system?
I checked out the latest copy of 0.9.5 from svn.  I am using Windows Vista
and running Java 6 build 7.

Please provide any additional information below.

Original issue reported on code.google.com by fac...@gmail.com on 10 Mar 2009 at 7:47

GoogleCodeExporter commented 9 years ago
What I mean is, for XML, it will need a start and end block.
So just setting the Action.toggle-comments.LineComments would not work.

Original comment by fac...@gmail.com on 10 Mar 2009 at 9:32

GoogleCodeExporter commented 9 years ago
Thanks for the report.  Will be fixed shortly.

Original comment by ayman.al...@gmail.com on 10 Mar 2009 at 10:54

GoogleCodeExporter commented 9 years ago
Fixed in r98.  
I used the TemplateAction, which is more suitable for XML.  However it will 
comment
whatever you have selected, even if it does not properly span tags.

BTW, did you have any Maven issues while building?  Please have a look at issue 
71 if
you have a minute.

Original comment by ayman.al...@gmail.com on 10 Mar 2009 at 11:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There is an issue with the missing dependency.
I had to change the maven-jflex-plugin to version 1.0 in order to have it 
compile.

Original comment by fac...@gmail.com on 11 Mar 2009 at 4:58

GoogleCodeExporter commented 9 years ago
Hmm.. is this related to issue 71?  I have no problems with Maven, but some do.

Original comment by ayman.al...@gmail.com on 11 Mar 2009 at 5:02