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.
Summary: | Treat numeric versions of "{}" as braces | ||
---|---|---|---|
Product: | javascript | Reporter: | Eccenux |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.3.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Eccenux
2013-09-13 13:14:40 UTC
In Smarty-like templates using numerical versions of "{}" is sometimes needed for adding JavaScript in templates code. Example: <input type="button" onclick="showHide({element:this, default:'show'})"> So in HTML files "{" should be treated as "{" and } as "}". Not a bug, more like enhancement if any. I think you can (with Smarty 3) use following just fine <input type="button" onclick="showHide({ element:this, default:'show' })"> adding whitespace before/after (I'm not sure if both or just after { and before } ) should prevent Smarty from interpreting it as a Smarty code |