How to config: use <php> and <?php> ?

2006-01-23
2012-11-13
  • Nobody/Anonymous

    Hi,

    currently I work with a php forum which uses templates. In these templates one has to use <php> (without questionmark) to embed php code since that content is later passed to eval()... The files have '.tpl' as extension, and I manually switch language to php but without success (is threatended as html then).

    Now how can I configure Notepad++ to highlight the syntax properly?

    Thanks in advance,
    Jochen

     
    • Steve

      Steve - 2006-01-25

      Have you tried adding tpl as a user ext extension for php in the style configurator?  That should make notepad highlight it as a php file.

      ~lasiandra.

       
    • Nobody/Anonymous

      Yes I tried that. The result is the same as if I switch manually to php:
      All the html tags are highlighted as they should - but the php keywords are not, probably due to Notepad++ waiting for a php start tag with questionmark. As I explained above there is only a <php> ... </php> tag so that I want Notepad++ to recognize these...

      Thanks for your help,
      Jochen

       
    • Nobody/Anonymous

      Yes I tried that. The result is the same as if I switch manually to php:
      All the html tags are highlighted as they should - but the php keywords are not, probably due to Notepad++ waiting for a php start tag with questionmark. As I explained above there is only a <php> ... </php> tag so that I want Notepad++ to recognize these...

      Thanks for your help,
      Jochen

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks