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: | Smarty code formatting | ||
---|---|---|---|
Product: | php | Reporter: | MrDutchy |
Component: | Smarty | Assignee: | Martin Fousek <marfous> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mfukala, mmirilovic |
Priority: | P2 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
MrDutchy
2010-11-02 11:25:01 UTC
Hi MrDutchy, troubles with code formating in Smarty are good known. It's because there wasn't still implemented CodeFormater at all for now. At least I can hide the "Format" button until will be code formating implemented. Ok, I removed Format action from the context menu at least for now, you can see it in next dev build: http://hg.netbeans.org/main/contrib/rev/11bd2356ad7b Ok, I finally implemented at least some basic indentation support, so your code will be formated properly now... http://hg.netbeans.org/main/contrib/rev/07429a4ce259 BTW, works since version 1.50 - in dev build for now. See... <table> {foreach from=$source item=item} <tr> <td> {$item.var} </td> </tr> {/foreach} </table> <h1>HTML after</h1> <p> A paragraph </p> <!-- Actual result: !--> <table> {foreach from=$source item=item} <tr> <td> {$item.var} </td> </tr> {/foreach} </table> <h1>HTML after</h1> <p> A paragraph </p> php.smarty added as a friend of css.editor: http://hg.netbeans.org/web-main/rev/e68e5bfc48af For proper functionality in NB 7.0 would be needed to transplant this patch into release70 branch. reviewed, feel free to integrate Integrated into release70: http://hg.netbeans.org/releases/rev/c27d0c6270a1 Integrated into 'main-golden', will be available in build *201103290400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e68e5bfc48af User: Martin Fousek <marfous@netbeans.org> Log: added php.smarty as a friend of css.editor - #191557, #188124 v. |