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 - Treat numeric versions of "{}" as braces
Summary: Treat numeric versions of "{}" as braces
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 13:14 UTC by Eccenux
Modified: 2013-09-13 13:46 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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