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 101308 - Reformat code does not work for embedded js
Summary: Reformat code does not work for embedded js
Status: VERIFIED DUPLICATE of bug 102058
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-17 11:46 UTC by Max Sauer
Modified: 2009-05-18 10:47 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 Max Sauer 2007-04-17 11:46:22 UTC
It would be nice if the 'Reformat Code' functionality aviable inside html editor
would affect embedded javascript. Currently, ie. following code is not re-indented:

<html>
    <head>
        <script type="text/javascript">
function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
  {alert(alerttxt);return false}
else {return true}
}
}

function validate_form(thisform)
{
with (thisform)
{
if (validate_required(email,"Email must be filled out!")==false)
  {email.focus();return false}
}
}
        </script>
    </head>
    <body>
<body>
</html>

---
NetBeans IDE Dev (Build 200704161800)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b04
SunOS version 5.10 running on sparc
en (nb); ISO646-US
Comment 1 Marek Fukala 2007-07-13 13:43:13 UTC

*** This issue has been marked as a duplicate of 102058 ***
Comment 2 Max Sauer 2007-07-16 08:24:01 UTC
Hm,verified duplicate.