[ 
https://issues.apache.org/jira/browse/NETBEANS-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomáš Procházka closed NETBEANS-4649.
-------------------------------------
    Fix Version/s:     (was: 11.3)
                       (was: 12.0)
                   12.1
       Resolution: Fixed

Tested and it works for me.

> Codetemplate  in Plain php-html 
> --------------------------------
>
>                 Key: NETBEANS-4649
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4649
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Completion & Templates, php - Code, web - 
> HTML Editor
>            Reporter: flexJoly
>            Priority: Major
>             Fix For: 12.1
>
>         Attachments: OrderList_demo.tpl.php, 
> image-2020-07-28-15-33-13-351.png, image-2020-07-28-15-36-26-205.png, 
> image-2020-07-28-15-39-01-238.png, netbeans-4649-cc.png, 
> netbeans-4649-codetemplates-html-options.png
>
>
> We normally use Smarty. But we are exploring of having our own template 
> engine (togeter with smarty for now)
> So I made a file: *orderlist.tpl.php* (see in attachments)
> I tried to make a code-template: for '<?= ${cursor}; ?>' .
> As suggested in: 
> [https://netbeans.apache.org/kb/docs/php/code-templates.html#_use_case_inserting_php_into_html]
> !image-2020-07-28-15-33-13-351.png|width=449,height=383!
> I tried to put it in: php, html, plain text etc., with/without context etc
>  Should be easy.... and it is. But really.... it WON'T show up in the code.
> Typing 'pe' and ctrl-space >>> no suggestions
> !image-2020-07-28-15-36-26-205.png|width=464,height=417!
>  
> I tried .phtml and other extensions for the file (like: orderlist.phtml). 
> Tried to change the file-type in the options to: text/x-php, html, template 
> etc....
>  I cannot get this to work....
> In utter desperation I made my first macro in netbeans (never needed it 
> before) and that works very nice (should have done this before :D) but every 
> macro needs an shorcut to work..... pppfff
>  
>  
> How to get the codetemplate '<?= ${cursor}; ?>' show up in a php/html file ??
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to