ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> komodo-discuss
komodo-discuss
[Komodo-discuss] template-toolkit syntax checker
by cholet other posts by this author
Jul 8 2008 2:27PM messages near this date
view in the new Beta List Site
Re: [Komodo-discuss] Key Binding: Brief emulation | Re: [Komodo-discuss] template-toolkit syntax checker
I don't understand how the TT file type works.
First of all, it seems to think that TT is used only for HTML files:

[% foo %]

=>  Warning: missing <!DOCTYPE> declaration, etc.

Ok, let's do HTML then:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xh
tml1-strict.dtd 
"> 
[% FILTER collapse %]
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
<head> 
<title> foo</title>
</head> 
<body> bar</body>
</html> 

the [% FILTER collapse %] line has this:
=>  Warning plain text isn't allowed in <head> elements
and then a bunch of other warnings which seem a consequence of this  
first one.

Removing this TT directive makes the syntax check pass.

I would expect the TT file type to ignore TT directives when syntax  
checking; and maybe some special coloring for TT directives.

--
Ã?ric Cholet

_______________________________________________
Komodo-discuss mailing list
Komodo-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
Thread:
cholet
Trent Mick
cholet
Trent Mick
cholet
R. Hicks

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved