You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "flexJoly (Jira)" <ji...@apache.org> on 2020/07/28 13:41:00 UTC

[jira] [Commented] (NETBEANS-4649) Codetemplate in Plain php-html

    [ https://issues.apache.org/jira/browse/NETBEANS-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17166431#comment-17166431 ] 

flexJoly commented on NETBEANS-4649:
------------------------------------

thanks for responding
I updated my post....
I find it very hard to explain, so I hope this helps. Otherwise I will try again or make a little video.

> 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 &amp; Templates, php - Code, web - HTML Editor
>            Reporter: flexJoly
>            Priority: Major
>             Fix For: 12.0, 11.3
>
>         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
>
>
> 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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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