Highlighting as HTML

Syntax highlighting, code folding, brace matching, code indenting, and function list

Highlighting as HTML

Postby jmateboer » Wed Dec 27, 2006 8:20 am

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
User avatar
jmateboer
Newbie
 
Posts: 2
Joined: Wed Dec 27, 2006 12:00 am

Re: Highlighting as HTML

Postby Bego » Wed Dec 27, 2006 8:47 am

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

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

rds Bego
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany

Re: Highlighting as HTML

Postby jmateboer » Wed Dec 27, 2006 9:00 am

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
User avatar
jmateboer
Newbie
 
Posts: 2
Joined: Wed Dec 27, 2006 12:00 am

Re: Highlighting as HTML

Postby Dawk » Fri Feb 09, 2007 11:53 am

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
User avatar
Dawk
Newbie
 
Posts: 5
Joined: Fri Feb 09, 2007 12:00 am
Location: Denmark

Re: Highlighting as HTML

Postby eMuMu » Mon Feb 12, 2007 7:05 pm

I would be so grateful if you could send me that wordfile as well!
I sit here in despair :(
User avatar
eMuMu
Newbie
 
Posts: 1
Joined: Mon Feb 12, 2007 12:00 am

Re: Highlighting as HTML

Postby Dawk » Tue Feb 13, 2007 6:59 am

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.
User avatar
Dawk
Newbie
 
Posts: 5
Joined: Fri Feb 09, 2007 12:00 am
Location: Denmark

Re: Highlighting as HTML

Postby garyamort » Sun Aug 05, 2007 5:19 pm

Is that smarty wordfile still available?
User avatar
garyamort
Newbie
 
Posts: 2
Joined: Thu Mar 15, 2007 11:00 pm

Re: Highlighting as HTML

Postby Bego » Sun Aug 05, 2007 5:53 pm

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

Smarty wordfile

rds Bego
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany


Return to Syntax Highlighting