[243334] [editor] Adding a comment from Source>Toggle comment in a <script> tag - adds an html comment rather than javascript comment
diff --git a/bundles/org.eclipse.wst.jsdt.web.ui/plugin.xml b/bundles/org.eclipse.wst.jsdt.web.ui/plugin.xml index b4e750c..8c0bbbb 100644 --- a/bundles/org.eclipse.wst.jsdt.web.ui/plugin.xml +++ b/bundles/org.eclipse.wst.jsdt.web.ui/plugin.xml
@@ -670,6 +670,66 @@ </objectContribution> </extension> --> + <extension + point="org.eclipse.wst.sse.ui.commentingStrategy"> + <blockCommentingStrategy + prefix="/*" + suffix="*/"> + <contentType + id="org.eclipse.wst.html.core.htmlsource"> + <requiredPartitionTypes> + <partitionType + id="org.eclipse.wst.html.SCRIPT"> + </partitionType> + </requiredPartitionTypes> + <allowablePartitionTypes + anyPartitionType="false"> + </allowablePartitionTypes> + </contentType> + <contentType + id="org.eclipse.jst.jsp.core.jspsource"> + <requiredPartitionTypes> + <partitionType + id="org.eclipse.wst.html.SCRIPT"> + </partitionType> + <partitionType + id="org.eclipse.jst.jsp.SCRIPT.JAVASCRIPT"> + </partitionType> + </requiredPartitionTypes> + <allowablePartitionTypes + anyPartitionType="false"> + </allowablePartitionTypes> + </contentType> + </blockCommentingStrategy> + <lineCommentingStrategy + prefix="//"> + <contentType + id="org.eclipse.wst.html.core.htmlsource"> + <requiredPartitionTypes> + <partitionType + id="org.eclipse.wst.html.SCRIPT"> + </partitionType> + </requiredPartitionTypes> + <allowablePartitionTypes + anyPartitionType="false"> + </allowablePartitionTypes> + </contentType> + <contentType + id="org.eclipse.jst.jsp.core.jspsource"> + <requiredPartitionTypes> + <partitionType + id="org.eclipse.wst.html.SCRIPT"> + </partitionType> + <partitionType + id="org.eclipse.jst.jsp.SCRIPT.JAVASCRIPT"> + </partitionType> + </requiredPartitionTypes> + <allowablePartitionTypes + anyPartitionType="false"> + </allowablePartitionTypes> + </contentType> + </lineCommentingStrategy> + </extension> <!-- Uncomment for Standalone + HTML as seperate options --> <!--