Menu

#378 Commenting javascript in a script tag

closed-fixed
nobody
General (289)
5
2011-10-13
2009-09-21
Anonymous
No

When commenting lines of code inside a script tag, the comment is incorrect.
Geany uses the html comment syntax, but instead it should use the javascript one /* comment */ or //

Discussion

  • Nick Treleaven

    Nick Treleaven - 2009-09-28

    Works for me, javascript comments are colored red.

     
  • Josh

    Josh - 2011-09-16

    I'm having the same issue. I just built geany from git (geany 0.21 (built on Sep 15 2011 with GTK 2.24.4, GLib 2.28.6)) if I hit ctrl+e inside a script tag I get results similar to this:

    <script>
    (function() {
    <!--
    console.log('this is a test');
    -->
    });
    </script>

     
  • Anonymous

    Anonymous - 2011-10-13
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB