PHP + HTML Document type?

  • Matteo

    is there a way to have a mixed PHP+HTML document type so that code from both languages is highlighted (ala Dreamweaver)?!

    plus, is it possibile not to have ">" thanslated into ">" in PHP files?


    PS: great piece of software, keep going!

    • David A Knight
      David A Knight

      gtksourceview is used for highlighting, so support for mixed types would have to be added there, or a custom highlighting file could be created that included all the html and php highlighting rules in 1 file.

      /usr/share/gtksourceview-1.0/language-specs contains all of them.  They are simple xml files.


      is also looked in for highlighting files, so user specific ones can be added there.

      As for the > becoming &gt; this is a very long standing bug, a few ways have been tried to get around it that don't involved dropping support for the auto translation to &gt;.  It is preferable to keep it for non <?php ?> sections in the document, disabling it will be a last resort.