This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 210434

Summary: Formatting of js code, doesn't work inside html.
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Petr Pisl 2012-03-30 13:32:57 UTC
The formatter doesn't work in html files. For example try to format this html page:


<!--
To change this template, choose Tools | Templates
    and open the template in t he e ditor.
-->
    <!DOCTYPE html>
    <html>
<head>
        <title>jQuery effect</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <a href="http://jquery.com/">jQuery</a>
        <script src="../jquery-1.7.2.js"></script>
        <script type="text/javascript">
            $("a").click(function(event){
 event.preventDefault();
 $(this).hide("slow");
 });
        </script>
    </body>
</html>
Comment 1 Petr Hejl 2012-09-06 13:57:05 UTC
Fixed for 7.3.