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.
Type in code like this: <select name='cont_type_code' class='button<?php echo $errors['cont_type_code']; ?>'> <option value='-' <?php echo empty($_POST['cont_type_code']) ? "selected='selected'" : ""; ?>></option> <option value='DC' <?php echo $_POST['cont_type_code'] == 'DC' ? "selected='selected'" : ""; ?>>DC</option> <option value='HC' <?php echo $_POST['cont_type_code'] == 'HC' ? "selected='selected'" : ""; ?>>HC</option> <option value='PW' <?php echo $_POST['cont_type_code'] == 'PW' ? "selected='selected'" : ""; ?>>PW</option> <option value='TC' <?php echo $_POST['cont_type_code'] == 'TC' ? "selected='selected'" : ""; ?>>TC</option> <option value='OT' <?php echo $_POST['cont_type_code'] == 'OT' ? "selected='selected'" : ""; ?>>OT</option> <option value='CS' <?php echo $_POST['cont_type_code'] == 'CS' ? "selected='selected'" : ""; ?>>CS</option> <option value='FT' <?php echo $_POST['cont_type_code'] == 'FT' ? "selected='selected'" : ""; ?>>FT</option> </select> Every odd <option> tag gets underlined as unmatched.
Created attachment 79960 [details] IDE screenshot
The problem is caused by the templating language used inside the tags. Html parser actually doesn't properly recover from such code. Minimum usecase to reproduce (in a JSP file): <select> <option <% %> ></option> </select>
*** Issue 160450 has been marked as a duplicate of this issue. ***
*** This issue has been marked as a duplicate of 149968 ***
the usecase works well after fixing 149968