Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

PHP + HTML Document type?

Matteo
2005-11-09
2013-04-11
  • Matteo
    Matteo
    2005-11-09

    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?

    Thanks

    PS: great piece of software, keep going!

     
    • David A Knight
      David A Knight
      2005-11-10

      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.

      ~/.gnome2/gtksourceview-1.0/language-specs/

      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.