Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4649

Codetemplate in Plain php-html

    XMLWordPrintableJSON

Details

    Description

      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

      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

       

      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 ) but every macro needs an shorcut to work..... pppfff

       

       

      How to get the codetemplate '<?= ${cursor}; ?>' show up in a php/html file ??

       

      Attachments

        1. netbeans-4649-cc.png
          12 kB
          Junichi Yamamoto
        2. netbeans-4649-codetemplates-html-options.png
          48 kB
          Junichi Yamamoto
        3. image-2020-07-28-15-39-01-238.png
          66 kB
          flexJoly
        4. image-2020-07-28-15-36-26-205.png
          66 kB
          flexJoly
        5. OrderList_demo.tpl.php
          0.5 kB
          flexJoly
        6. image-2020-07-28-15-33-13-351.png
          53 kB
          flexJoly

        Issue Links

          Activity

            People

              Unassigned Unassigned
              flexjoly flexJoly
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: