Highlighting as HTML

Highlighting as HTML

2
NewbieNewbie
2

    Dec 27, 2006#1

    Hi there,

    I am a new member of this forum and I have the following question. Maybe it has been asked before but I could not find it.

    Our company works with an CMS program which has is own templates with the extension .tpl. These templates are actually html files with some added tags. When I open these templates with UltraEdit I get the 'grey' highlighting. Is it possible to link the HTML highlighting with these tpl files? So that I don't need to set the 'View as' function every time I open a file like this?

    Greets,

    Jan

    344
    MasterMaster
    344

      Dec 27, 2006#2

      just enhance your html-line in your wordfile like this:

      /L1"HTML" blabla File Extensions = HTM HTML TPL

      rds Bego
      Normally using all newest english version incl. each hotfix. Win 10 64 bit

      2
      NewbieNewbie
      2

        Dec 27, 2006#3

        Bego wrote:just enhance your html-line in your wordfile like this:

        /L1"HTML" blabla File Extensions = HTM HTML TPL

        rds Bego
        Well, that was easy. Thanks! :D

        5
        NewbieNewbie
        5

          Feb 09, 2007#4

          jmateboer:
          If the template language you are talking about is Smarty, I have expanded the HTML highlighting in the wordfile to include Smarty tags with proper indentation and code folding (without breaking HTML highlighting).

          Let me know if you would like a copy of my wordfile.

          /Dawk

          1
          NewbieNewbie
          1

            Feb 13, 2007#5

            I would be so grateful if you could send me that wordfile as well!
            I sit here in despair :(

            5
            NewbieNewbie
            5

              Feb 13, 2007#6

              Here you go - This is a work in progress, so I am planning on submitting it once it's finished.

              You can download it here: Smarty highlighting

              Known issues: So far I have been unable to make php code between {php} and {/php} highlight.

              I know that I could just add the php keywords to /L3 as well, but that would enable php highlighting everywhere, not just inside {php}{/php} tags.

              2
              NewbieNewbie
              2

                Aug 05, 2007#7

                Is that smarty wordfile still available?

                344
                MasterMaster
                344

                  Aug 05, 2007#8

                  You can download a Smarty wordfile at the official UE wordfile page here:

                  Smarty wordfile

                  rds Bego
                  Normally using all newest english version incl. each hotfix. Win 10 64 bit