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 235935

Summary: Treat numeric versions of "{}" as braces
Product: javascript Reporter: Eccenux
Component: EditorAssignee: 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

Comment 1 Eccenux 2013-09-13 13:35:22 UTC
In Smarty-like templates using numerical versions of "{}" is sometimes needed for adding JavaScript in templates code. Example:

  <input type="button" onclick="showHide(&#123;element:this, default:'show'&#125;)">

So in HTML files "&#123;" should be treated as "{" and &#125; as "}".
Comment 2 Vladimir Riha 2013-09-13 13:46:07 UTC
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