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 - Formatting of js code, doesn't work inside html.
Summary: Formatting of js code, doesn't work inside html.
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-30 13:32 UTC by Petr Pisl
Modified: 2012-09-06 13:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.