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: | Custom Code Templates and Code Completion for PHP | ||
---|---|---|---|
Product: | php | Reporter: | edutrul |
Component: | Editor | Assignee: | Tomas Mysik <tmysik> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | junichi11, riksoft, tmysik, toramanlis |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
patch
screenshot (options) |
Description
edutrul
2014-08-24 15:12:52 UTC
More a bug if the API already exists and it is used in Java - Ondro, please evaulate, thanks. Thanks for reporting. Created attachment 157320 [details]
patch
I've created a patch.
Created attachment 157321 [details]
screenshot (options)
A custom code template will be shown in the CC popup if you check the "php-code" in the Contexts tab.
Tomas, Because "php-code" is used as contexts in the default templates file, I just used it. Thanks. Will try to get to your patches ASAP, sorry I am quite busy now :/. Likely till the end of the next week. Thanks for understanding. (In reply to Tomas Mysik from comment #5) > Will try to get to your patches ASAP, sorry I am quite busy now :/. Likely > till the end of the next week. Anytime is OK for me :) *** Bug 256553 has been marked as a duplicate of this bug. *** Please take note that as I wrote here https://netbeans.org/bugzilla/show_bug.cgi?id=256553 the problem is not only about PHP, it involves also the other web related languages, such as HTML, JS, etc. (In reply to riksoft from comment #8) > Please take note that as I wrote here > https://netbeans.org/bugzilla/show_bug.cgi?id=256553 > the problem is not only about PHP, it involves also the other web related > languages, such as HTML, JS, etc. Probably, you should report it to each language support. Thanks. OK, I've changed the scope from product PHP to Editor and Component="Complations & Templates". Thanks. (In reply to riksoft from comment #10) > OK, I've changed the scope from product PHP to Editor and > Component="Complations & Templates". Sorry, please don't change to it. Just submit to __each language__(e.g. Html editor, javascript editor,...) as a new issue. Because this feature already exists in the editor area, each language support has to implement it. Thanks. *** Bug 256553 has been marked as a duplicate of this bug. *** Patch applied, thanks a lot for it, Junichi! The only change I made was to set proper library version to be used. http://hg.netbeans.org/web-main/rev/f4f5bd9b01f1 Integrated into 'main-silver', will be available in build *201511210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f4f5bd9b01f1 User: Tomas Mysik <tmysik@netbeans.org> Log: #246664 - Custom Code Templates and Code Completion for PHP Patch contributed by junichi11@netbeans.org. I blogged about it: https://benkiew.wordpress.com/2016/01/07/quicktip-how-to-display-your-own-php-code-templates-in-the-code-completion-of-netbeans-ide/ *** Bug 257229 has been marked as a duplicate of this bug. *** |